Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootstrap project #1

Merged
merged 3 commits into from
Jun 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Code checks

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
CARGO_TERM_COLOR: always

jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy
- name: Lint
run: cargo clippy --all-targets -- -D warnings

format:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: rustfmt
- name: Format
run: cargo fmt --all -- --check

test_and_coverage:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: llvm-tools-preview
toolchain: stable

- name: Install llvm-cov
env:
LLVM_COV_RELEASES: https://github.com/taiki-e/cargo-llvm-cov/releases
run: |
host=$(rustc -Vv | grep host | sed 's/host: //')
curl -fsSL $LLVM_COV_RELEASES/latest/download/cargo-llvm-cov-$host.tar.gz | tar xzf - -C "$HOME/.cargo/bin"

- name: Test and generate coverage report
run: cargo llvm-cov --lcov --output-path coverage.lcov

- name: Upload coverage report
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
file: coverage.lcov
flags: rust
token: ${{ secrets.CODECOV_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
**/target
**/tests/tmp
/.vim
69 changes: 69 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
[submodule "rgb-std"]
path = rgb-std
url = https://github.com/RGB-WG/rgb-std.git
[submodule "rust-aluvm"]
path = rust-aluvm
url = https://github.com/aluvm/rust-aluvm
[submodule "rgb-interfaces"]
path = rgb-interfaces
url = https://github.com/RGB-WG/rgb-interfaces
[submodule "client_side_validation"]
path = client_side_validation
url = https://github.com/LNP-BP/client_side_validation/
[submodule "bp-core"]
path = bp-core
url = https://github.com/BP-WG/bp-core
[submodule "rgb-core"]
path = rgb-core
url = https://github.com/RGB-WG/rgb-core
[submodule "bp-std"]
path = bp-std
url = https://github.com/BP-WG/bp-std
[submodule "rgb-schemata"]
path = rgb-schemata
url = https://github.com/RGB-WG/rgb-schemata
[submodule "strict-types"]
path = strict-types
url = https://github.com/strict-types/strict-types
[submodule "strict-encoding"]
path = strict-encoding
url = https://github.com/strict-types/strict-encoding
[submodule "bp-electrum-client"]
path = bp-electrum-client
url = https://github.com/BP-WG/bp-electrum-client/
[submodule "rust-amplify"]
path = rust-amplify
url = https://github.com/rust-amplify/rust-amplify
[submodule "rgb"]
path = rgb
url = https://github.com/RGB-WG/rgb
[submodule "descriptor-wallet"]
path = descriptor-wallet
url = https://github.com/BP-WG/descriptor-wallet
[submodule "bp-wallet"]
path = bp-wallet
url = https://github.com/BP-WG/bp-wallet
[submodule "amplify-num"]
path = amplify-num
url = https://github.com/rust-amplify/amplify-num.git
[submodule "amplify-derive"]
path = amplify-derive
url = https://github.com/rust-amplify/amplify-derive.git
[submodule "ascii-armor"]
path = ascii-armor
url = https://github.com/UBIDECO/ascii-armor.git
[submodule "rust-baid58"]
path = rust-baid58
url = https://github.com/UBIDECO/rust-baid58
[submodule "bitcoin_foundation"]
path = bitcoin_foundation
url = https://github.com/BP-WG/bitcoin_foundation.git
[submodule "bp-esplora-client"]
path = bp-esplora-client
url = https://github.com/BP-WG/bp-esplora-client.git
[submodule "encoding_derive_helpers"]
path = encoding_derive_helpers
url = https://github.com/strict-types/encoding_derive_helpers.git
[submodule "vesper"]
path = vesper
url = https://github.com/UBIDECO/vesper.git
Loading