Skip to content
Draft
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
7 changes: 6 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@ jobs:
strategy:
fail-fast: false
matrix:
toolchain: [ nightly, stable, 1.88.0 ]
toolchain: [ stable, 1.94.0, beta ]
name: [ linux, windows, macos ]
exclude:
- name: windows
toolchain: beta
- name: macos
toolchain: beta
include:
- name: linux
os: warp-ubuntu-latest-x64-16x
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/format.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,8 @@ jobs:
components: rustfmt
- name: Format
run: cargo fmt -- --check
# these crates have their own workspace, so the root `cargo fmt` skips them
- name: Format (out-of-workspace binding crates)
run: |
cargo fmt --manifest-path bindings/c-ffi/Cargo.toml -- --check
cargo fmt --manifest-path bindings/uniffi-bindgen/Cargo.toml -- --check
6 changes: 3 additions & 3 deletions .github/workflows/release-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.88.0
toolchain: 1.94.0
rustflags: ""

- name: Add wasm32 target
Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.88.0
toolchain: 1.94.0
rustflags: ""

- name: Setup Java
Expand Down Expand Up @@ -275,7 +275,7 @@ jobs:
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.88.0
toolchain: 1.94.0
rustflags: ""

- name: Install bindgen-cli
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/sdk-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.88.0
toolchain: 1.94.0
rustflags: ""

- name: Cache Rust build artifacts
Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.88.0
toolchain: 1.94.0
rustflags: ""

- name: Cache Rust build artifacts
Expand Down Expand Up @@ -173,7 +173,7 @@ jobs:
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.88.0
toolchain: 1.94.0
rustflags: ""

- name: Cache Rust build artifacts
Expand Down Expand Up @@ -210,7 +210,7 @@ jobs:
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.88.0
toolchain: 1.94.0
rustflags: ""

- name: Cache Rust build artifacts
Expand Down Expand Up @@ -247,7 +247,7 @@ jobs:
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.88.0
toolchain: 1.94.0
rustflags: ""

- name: Cache Rust build artifacts
Expand Down Expand Up @@ -355,7 +355,7 @@ jobs:
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.88.0
toolchain: 1.94.0
rustflags: ""

- name: Cache Rust build artifacts
Expand Down Expand Up @@ -419,7 +419,7 @@ jobs:
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.88.0
toolchain: 1.94.0
rustflags: ""

- name: Cache Rust build artifacts
Expand Down Expand Up @@ -592,7 +592,7 @@ jobs:
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.88.0
toolchain: 1.94.0
rustflags: ""

- name: Cache Rust build artifacts
Expand Down Expand Up @@ -633,7 +633,7 @@ jobs:
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.88.0
toolchain: 1.94.0
rustflags: ""

- name: Cache Rust build artifacts
Expand Down
30 changes: 27 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
cargo test --features "uniffi,vls" --lib 'signer::channel_signer::tests::' -- --test-threads=1
cargo test --features "uniffi,vls" --lib 'signer::in_process_transport::tests::' -- --test-threads=1

test:
test_and_coverage:
runs-on: warp-ubuntu-latest-x64-16x
timeout-minutes: 90
steps:
Expand All @@ -86,9 +86,26 @@ jobs:
submodules: true
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: llvm-tools-preview
toolchain: stable
rustflags: ""
- name: Tests
run: cargo test -- --test-threads=1 --skip test::gossip_
- name: Build daemon binary for process-crash tests
run: cargo build --bin rgb-lightning-node
- 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: Tests and coverage report
run: ./coverage.sh --ci --skip test::gossip_
- name: Upload coverage report
uses: codecov/codecov-action@v6
with:
fail_ci_if_error: false
file: coverage.lcov
flags: rust
token: ${{ secrets.CODECOV_TOKEN }}
- name: UniFFI SDK smoke tests
run: cargo test --features uniffi --lib 'uniffi_smoke_tests::' -- --test-threads=1

Expand Down Expand Up @@ -141,8 +158,15 @@ jobs:
run: cargo build --features vss
- name: Run deterministic VSS durability regressions
run: cargo test --features vss "test::vss_durability_gaps" -- --test-threads=1
- name: Run VSS teardown headline tests
run: cargo test --features "uniffi,test-utils,vls,vss" --bin rgb-lightning-node ldk::vss_teardown_tests -- --test-threads=1
- name: Start regtest and VSS services
run: VSS=1 ./regtest.sh start
- name: Run RGB channel-info device-loss durability regression
run: >-
cargo test --features vss
"test::vss_durability_gaps::tests::acknowledged_rgb_channel_info"
-- --test-threads=1
- name: Run VSS tests (e2e against regtest + VSS server)
run: SKIP_INIT=1 cargo test --features vss "test::vss::tests" -- --test-threads=1
- name: Run VSS unreachable openchannel e2e test
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/uniffi-artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.88.0
toolchain: 1.94.0
rustflags: ""

- name: Run library-only test suite
Expand All @@ -43,7 +43,7 @@ jobs:
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.88.0
toolchain: 1.94.0
rustflags: ""

- name: Build host cdylib
Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.88.0
toolchain: 1.94.0
rustflags: ""

- name: Setup Java
Expand Down Expand Up @@ -169,7 +169,7 @@ jobs:
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.88.0
toolchain: 1.94.0
rustflags: ""

- name: Install bindgen-cli
Expand Down
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Test files
/datacore
/dataesplora
/dataindex
/dataldk0
/dataldk1
Expand All @@ -10,6 +11,9 @@
# will have compiled files and executables
**/target

# coverage report generated for the CI
/coverage.lcov

# These are backup files generated by rustfmt
**/*.rs.bk

Expand Down
Loading
Loading