Skip to content

Commit

Permalink
Merge pull request #2 from zoedberg/init_2
Browse files Browse the repository at this point in the history
bootstrap project
  • Loading branch information
dr-orlovsky authored Sep 11, 2024
2 parents 76ba5d4 + 132b8ba commit c9dd184
Show file tree
Hide file tree
Showing 38 changed files with 6,235 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 }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
**/target
**/tests/tmp
**/tests/mainnet
/.vim
63 changes: 63 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
[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 "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 "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
[submodule "amplify-nonasync"]
path = amplify-nonasync
url = https://github.com/rust-amplify/amplify-nonasync.git
Loading

0 comments on commit c9dd184

Please sign in to comment.