Merge pull request #52 from qntx/dependabot/cargo/thiserror-2.0.20 #101
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Rust | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@nightly | |
| with: | |
| components: rustfmt, clippy | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Format | |
| run: cargo fmt --all --check | |
| - name: Clippy | |
| run: cargo clippy --workspace --all-targets --all-features -- -D warnings | |
| test: | |
| name: Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Build | |
| run: cargo build --workspace --all-features --verbose | |
| - name: Test | |
| run: cargo test --workspace --all-features --verbose | |
| deny: | |
| name: cargo-deny | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: EmbarkStudios/cargo-deny-action@v2 | |
| with: | |
| command: check | |
| arguments: --all-features | |
| no-std: | |
| name: no_std | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: thumbv7m-none-eabi | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Install ARM cross-compiler | |
| run: sudo apt-get update && sudo apt-get install -y gcc-arm-none-eabi | |
| - name: kobe-primitives (pure no_std) | |
| run: cargo check -p kobe-primitives --target thumbv7m-none-eabi --no-default-features | |
| - name: kobe-primitives (alloc) | |
| run: cargo check -p kobe-primitives --target thumbv7m-none-eabi --no-default-features --features alloc | |
| - name: kobe-primitives (alloc + all optional) | |
| run: cargo check -p kobe-primitives --target thumbv7m-none-eabi --no-default-features --features "alloc,bip32,slip10,camouflage,encoding" | |
| - name: kobe-aptos (no_std) | |
| run: cargo check -p kobe-aptos --target thumbv7m-none-eabi --no-default-features --features alloc | |
| - name: kobe-btc (no_std) | |
| run: cargo check -p kobe-btc --target thumbv7m-none-eabi --no-default-features --features alloc | |
| - name: kobe-evm (no_std) | |
| run: cargo check -p kobe-evm --target thumbv7m-none-eabi --no-default-features --features alloc | |
| - name: kobe-svm (no_std) | |
| run: cargo check -p kobe-svm --target thumbv7m-none-eabi --no-default-features --features alloc | |
| - name: kobe-cosmos (no_std) | |
| run: cargo check -p kobe-cosmos --target thumbv7m-none-eabi --no-default-features --features alloc | |
| - name: kobe-tron (no_std) | |
| run: cargo check -p kobe-tron --target thumbv7m-none-eabi --no-default-features --features alloc | |
| - name: kobe-spark (no_std) | |
| run: cargo check -p kobe-spark --target thumbv7m-none-eabi --no-default-features --features alloc | |
| - name: kobe-fil (no_std) | |
| run: cargo check -p kobe-fil --target thumbv7m-none-eabi --no-default-features --features alloc | |
| - name: kobe-ton (no_std) | |
| run: cargo check -p kobe-ton --target thumbv7m-none-eabi --no-default-features --features alloc | |
| - name: kobe-sui (no_std) | |
| run: cargo check -p kobe-sui --target thumbv7m-none-eabi --no-default-features --features alloc | |
| - name: kobe-nostr (no_std) | |
| run: cargo check -p kobe-nostr --target thumbv7m-none-eabi --no-default-features --features alloc | |
| - name: kobe-xrpl (no_std) | |
| run: cargo check -p kobe-xrpl --target thumbv7m-none-eabi --no-default-features --features alloc | |
| - name: kobe-casper (no_std) | |
| run: cargo check -p kobe-casper --target thumbv7m-none-eabi --no-default-features --features alloc | |
| - name: kobe-arweave (no_std) | |
| run: cargo check -p kobe-arweave --target thumbv7m-none-eabi --no-default-features --features alloc | |
| - name: kobe (no_std) | |
| run: cargo check -p kobe --target thumbv7m-none-eabi --no-default-features --features alloc | |
| - name: kobe (no_std + all chains) | |
| run: cargo check -p kobe --target thumbv7m-none-eabi --no-default-features --features "alloc,all-chains" |