Skip to content

Commit

Permalink
WIP bootstrap project
Browse files Browse the repository at this point in the history
  • Loading branch information
zoedberg committed Jul 4, 2024
1 parent 76ba5d4 commit c021023
Show file tree
Hide file tree
Showing 39 changed files with 5,722 additions and 0 deletions.
70 changes: 70 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
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
with:
submodules: true
- 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
with:
submodules: true

- 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: |
INDEXER=esplora cargo llvm-cov --output-path coverage.lcov
INDEXER=electrum cargo llvm-cov --no-clean --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
66 changes: 66 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
[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 "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 "vesper"]
path = vesper
url = https://github.com/UBIDECO/vesper.git
[submodule "rust-baid64"]
path = rust-baid64
url = https://github.com/UBIDECO/rust-baid64.git
Loading

0 comments on commit c021023

Please sign in to comment.