Skip to content

Commit bf76176

Browse files
devin-ai-integration[bot]Jayant Krishnamurthy
andauthored
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 479b596 commit bf76176

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
@@ -21,6 +21,9 @@ jobs:
2121
working-directory: target_chains/fuel/contracts/
2222
steps:
2323
- uses: actions/checkout@v2
24+
- uses: Swatinem/rust-cache@v2
25+
with:
26+
workspaces: "target_chains/fuel/contracts -> target"
2427
- name: Install Fuel toolchain
2528
run: |
2629
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
@@ -11,6 +11,9 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v2
14+
- uses: Swatinem/rust-cache@v2
15+
with:
16+
workspaces: "apps/hermes/server -> target"
1417
- uses: actions-rs/toolchain@v1
1518
with:
1619
profile: minimal

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

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

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
working-directory: target_chains/near/receiver
3737
steps:
3838
- uses: actions/checkout@v2
39+
- uses: Swatinem/rust-cache@v2
40+
with:
41+
workspaces: "target_chains/near/receiver -> target"
3942
- run: sudo apt-get install -y libudev-dev
4043
- run: cargo +stable install --locked [email protected]
4144
- 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
@@ -18,6 +18,9 @@ jobs:
1818
toolchain: 1.73.0
1919
components: rustfmt, clippy
2020
override: true
21+
- uses: Swatinem/rust-cache@v2
22+
with:
23+
workspaces: "governance/remote_executor -> target"
2124
- name: Install Solana
2225
run: |
2326
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
@@ -18,6 +18,9 @@ jobs:
1818
components: rustfmt, clippy
1919
override: true
2020
- uses: actions/checkout@v3
21+
- uses: Swatinem/rust-cache@v2
22+
with:
23+
workspaces: "target_chains/starknet/tools/test_vaas -> target"
2124
- name: Install Scarb
2225
uses: software-mansion/setup-scarb@v1
2326
with:

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

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

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

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

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

0 commit comments

Comments
 (0)