Skip to content

remove caches #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
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
59 changes: 25 additions & 34 deletions .github/workflows/cargo-hack-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Loading