Skip to content

Commit

Permalink
ci: rewrite build-examples job
Browse files Browse the repository at this point in the history
  • Loading branch information
ValuedMammal committed Jan 23, 2025
1 parent adb5b98 commit 1ac8ab7
Showing 1 changed file with 8 additions and 18 deletions.
26 changes: 8 additions & 18 deletions .github/workflows/cont_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -158,29 +158,19 @@ jobs:
needs: prepare
name: Build & Test Examples
runs-on: ubuntu-latest
strategy:
matrix:
example-dir:
- example_cli
- example_bitcoind_rpc_polling
- example_electrum
- example_esplora
- example_wallet_electrum
- example_wallet_esplora_async
- example_wallet_esplora_blocking
- example_wallet_rpc
steps:
- name: checkout
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@v1
with:
toolchain: ${{ needs.prepare.outputs.rust_version }}
override: true
profile: minimal
components: rustfmt, clippy
- name: Rust Cache
uses: Swatinem/[email protected]
# TODO: should lint each example crate
- name: Build
working-directory: example-crates/${{ matrix.example-dir }}
run: cargo build
- name: Check workspace
working-directory: example-crates
run: cargo fmt --all -- --config format_code_in_doc_comments=true --check
- run: cargo clippy --all-targets --all-features -- -Dwarnings
- run: cargo build --workspace
- run: cargo check --workspace

0 comments on commit 1ac8ab7

Please sign in to comment.