diff --git a/.github/workflows/cargo-hack-check.yml b/.github/workflows/cargo-hack-check.yml index c1f208562d..7279526c9c 100644 --- a/.github/workflows/cargo-hack-check.yml +++ b/.github/workflows/cargo-hack-check.yml @@ -38,13 +38,12 @@ jobs: with: persist-credentials: false - - name: Setup Rust with Cache + - name: Setup Rust uses: actions-rust-lang/setup-rust-toolchain@11df97af8e8102fd60b60a77dfbf58d40cd843b8 # v1.10.1 with: toolchain: ${{ needs.setup.outputs.rust-toolchain }} target: x86_64-pc-windows-gnu,x86_64-unknown-linux-gnu - cache: true - cache-key: cargo-hack-native-${{ needs.setup.outputs.rust-toolchain }}-${{ hashFiles('**/Cargo.lock') }} + cache: false - name: Install cargo-hack uses: taiki-e/install-action@2383334cf567d78771fc7d89b6b3802ef1412cf6 # v2.56.8 @@ -66,53 +65,45 @@ jobs: --target x86_64-pc-windows-gnu \ --target x86_64-unknown-linux-gnu - # WASM targets - separate cache since dependencies differ + # WASM targets - No caching needed as it runs in parallel with longer jobs wasm-targets: - name: ${{ matrix.name }} + name: WASM targets runs-on: ubuntu-latest needs: setup - strategy: - fail-fast: false - matrix: - include: - - name: "Clarity & Stacks-Common WASM Web" - command: | - cargo hack check \ - -p clarity-serialization \ - -p stacks-common \ - --each-feature \ - --no-dev-deps \ - --exclude-features=default,rusqlite,ctrlc-handler,wasm-deterministic \ - --features=wasm-web - - - name: "Clarity & Stacks-Common WASM Deterministic" - command: | - cargo hack check \ - -p clarity-serialization \ - -p stacks-common \ - --each-feature \ - --no-dev-deps \ - --include-features=wasm-deterministic,slog_json \ - --features=wasm-deterministic - steps: - name: Checkout uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 with: persist-credentials: false - - name: Setup Rust with Cache + - name: Setup Rust uses: actions-rust-lang/setup-rust-toolchain@11df97af8e8102fd60b60a77dfbf58d40cd843b8 # v1.10.1 with: toolchain: ${{ needs.setup.outputs.rust-toolchain }} target: wasm32-unknown-unknown - cache: true - cache-key: cargo-hack-wasm-${{ matrix.name }}-${{ needs.setup.outputs.rust-toolchain }}-${{ hashFiles('**/Cargo.lock') }} + cache: false - name: Install cargo-hack uses: taiki-e/install-action@2383334cf567d78771fc7d89b6b3802ef1412cf6 # v2.56.8 with: tool: cargo-hack - - name: Run cargo hack check - run: ${{ matrix.command }} + - name: Run cargo hack check (WASM Web) + run: | + cargo hack check \ + -p clarity-serialization \ + -p stacks-common \ + --each-feature \ + --no-dev-deps \ + --exclude-features=default,rusqlite,ctrlc-handler,wasm-deterministic \ + --features=wasm-web + + - name: Run cargo hack check (WASM Deterministic) + run: | + cargo hack check \ + -p clarity-serialization \ + -p stacks-common \ + --each-feature \ + --no-dev-deps \ + --include-features=wasm-deterministic,slog_json \ + --features=wasm-deterministic