]> Untitled Git - bdk/commitdiff
ci: add job to build example-crates independently
authorSteve Myers <steve@notmandatory.org>
Mon, 12 Aug 2024 22:30:11 +0000 (17:30 -0500)
committerSteve Myers <steve@notmandatory.org>
Tue, 13 Aug 2024 00:56:02 +0000 (19:56 -0500)
.github/workflows/cont_integration.yml

index f793f7ad6bd68c1feed480784b8d4cfb6d76fced..ef6fc8da12ef655fadc02d81d9da823ce0499595 100644 (file)
@@ -130,3 +130,32 @@ jobs:
         with:
           token: ${{ secrets.GITHUB_TOKEN }}
           args: --all-features --all-targets -- -D warnings
+
+  build-examples:
+    name: Build Examples
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        example-dir:
+          - example_cli
+          - example_bitcoind_rpc_polling
+          - example_electrum
+          - example_esplora
+          - wallet_electrum
+          - wallet_esplora_async
+          - wallet_esplora_blocking
+          - wallet_rpc
+    steps:
+      - name: checkout
+        uses: actions/checkout@v2
+      - name: Install Rust toolchain
+        uses: actions-rs/toolchain@v1
+        with:
+          toolchain: stable
+          override: true
+          profile: minimal
+      - name: Rust Cache
+        uses: Swatinem/rust-cache@v2.2.1
+      - name: Build
+        working-directory: example-crates/${{ matrix.example-dir }}
+        run: cargo build