Skip to content

feat: add rust-cache to all Rust workflows #2355

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

Merged
merged 1 commit into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions .github/workflows/ci-fuel-contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
working-directory: target_chains/fuel/contracts/
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
with:
workspaces: "target_chains/fuel/contracts -> target"
- name: Install Fuel toolchain
run: |
curl https://install.fuel.network | sh
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-hermes-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
with:
workspaces: "apps/hermes/server -> target"
- uses: actions-rs/toolchain@v1
with:
profile: minimal
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-lazer-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: 1.81.0
- uses: Swatinem/rust-cache@v2
with:
workspaces: "lazer -> target"
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: install extra tools
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-near-contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ jobs:
working-directory: target_chains/near/receiver
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
with:
workspaces: "target_chains/near/receiver -> target"
- run: sudo apt-get install -y libudev-dev
- run: cargo +stable install --locked cargo-near@0.13.3
- run: cargo near build reproducible-wasm
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-remote-executor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
toolchain: 1.73.0
components: rustfmt, clippy
override: true
- uses: Swatinem/rust-cache@v2
with:
workspaces: "governance/remote_executor -> target"
- name: Install Solana
run: |
sh -c "$(curl -sSfL https://release.solana.com/v1.18.23/install)"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-starknet-tools.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
components: rustfmt, clippy
override: true
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
with:
workspaces: "target_chains/starknet/tools/test_vaas -> target"
- name: Install Scarb
uses: software-mansion/setup-scarb@v1
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-stylus-nostd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ jobs:
with:
toolchain: stable
rustflags: ""
- uses: Swatinem/rust-cache@v2
with:
workspaces: "target_chains/ethereum/sdk/stylus -> target"
- name: Add rust targets ${{ matrix.target }}
run: rustup target add ${{ matrix.target }}
- name: Cargo check
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/ci-sui-contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
working-directory: target_chains/sui/contracts/
steps:
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
with:
workspaces: "target_chains/sui/contracts -> target"

- name: Update rust
run: rustup update stable
Expand Down
Loading