Skip to content

Commit 8cefc1f

Browse files
devin-ai-integration[bot]Jayant Krishnamurthy
authored andcommitted
feat: add rust-cache to all Rust workflows (#2355)
- Added Swatinem/rust-cache@v2 to all workflows that run Rust commands - Configured workspace paths for each workflow - Maintains existing workflow functionality while adding caching Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: Jayant Krishnamurthy <[email protected]>
1 parent f383726 commit 8cefc1f

File tree

8 files changed

+24
-0
lines changed

8 files changed

+24
-0
lines changed

.github/workflows/ci-fuel-contract.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
working-directory: target_chains/fuel/contracts/
2121
steps:
2222
- uses: actions/checkout@v2
23+
- uses: Swatinem/rust-cache@v2
24+
with:
25+
workspaces: "target_chains/fuel/contracts -> target"
2326
- name: Install Fuel toolchain
2427
run: |
2528
curl https://install.fuel.network | sh

.github/workflows/ci-hermes-server.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v2
15+
- uses: Swatinem/rust-cache@v2
16+
with:
17+
workspaces: "apps/hermes/server -> target"
1518
- uses: actions-rs/toolchain@v1
1619
with:
1720
profile: minimal

.github/workflows/ci-lazer-rust.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222
- uses: actions-rust-lang/setup-rust-toolchain@v1
2323
with:
2424
toolchain: 1.81.0
25+
- uses: Swatinem/rust-cache@v2
26+
with:
27+
workspaces: "lazer -> target"
2528
- name: Install Foundry
2629
uses: foundry-rs/foundry-toolchain@v1
2730
- name: install extra tools

.github/workflows/ci-near-contract.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ jobs:
3232
working-directory: target_chains/near/receiver
3333
steps:
3434
- uses: actions/checkout@v2
35+
- uses: Swatinem/rust-cache@v2
36+
with:
37+
workspaces: "target_chains/near/receiver -> target"
3538
- run: sudo apt-get install -y libudev-dev
3639
- run: cargo +stable install --locked [email protected]
3740
- run: cargo near build reproducible-wasm

.github/workflows/ci-remote-executor.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
toolchain: 1.73.0
2020
components: rustfmt, clippy
2121
override: true
22+
- uses: Swatinem/rust-cache@v2
23+
with:
24+
workspaces: "governance/remote_executor -> target"
2225
- name: Install Solana
2326
run: |
2427
sh -c "$(curl -sSfL https://release.solana.com/v1.18.23/install)"

.github/workflows/ci-starknet-tools.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
components: rustfmt, clippy
2020
override: true
2121
- uses: actions/checkout@v3
22+
- uses: Swatinem/rust-cache@v2
23+
with:
24+
workspaces: "target_chains/starknet/tools/test_vaas -> target"
2225
- name: Install Scarb
2326
uses: software-mansion/setup-scarb@v1
2427
with:

.github/workflows/ci-stylus-nostd.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
with:
3737
toolchain: stable
3838
rustflags: ""
39+
- uses: Swatinem/rust-cache@v2
40+
with:
41+
workspaces: "target_chains/ethereum/sdk/stylus -> target"
3942
- name: Add rust targets ${{ matrix.target }}
4043
run: rustup target add ${{ matrix.target }}
4144
- name: Cargo check

.github/workflows/ci-sui-contract.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818
working-directory: target_chains/sui/contracts/
1919
steps:
2020
- uses: actions/checkout@v3
21+
- uses: Swatinem/rust-cache@v2
22+
with:
23+
workspaces: "target_chains/sui/contracts -> target"
2124

2225
- name: Update rust
2326
run: rustup update stable

0 commit comments

Comments
 (0)