Skip to content

Commit

Permalink
ci(caches): use rust-cache instead of buildjet to cache deps
Browse files Browse the repository at this point in the history
  • Loading branch information
rymnc committed Jan 9, 2025
1 parent 01fb27a commit 9284f84
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
with:
toolchain: ${{ env.RUST_VERSION_FMT }}
components: rustfmt
- uses: Swatinem/rust-cache@v2

- name: Rustfmt check
run: cargo +${{ env.RUST_VERSION_FMT }} fmt --all -- --check
Expand Down Expand Up @@ -164,20 +165,12 @@ jobs:
toolchain: ${{ env.RUST_VERSION }}
targets: "wasm32-unknown-unknown"
components: "clippy"
- uses: Swatinem/rust-cache@v2
- name: Install Cargo Make
uses: davidB/rust-cargo-make@v1
with:
version: "0.36.4"
- uses: rui314/setup-mold@v1
- uses: buildjet/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ matrix.command }}-${{ matrix.args }}-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/cargo@v1
if: ${{ matrix.command == 'nextest' }}
with:
Expand Down Expand Up @@ -231,16 +224,8 @@ jobs:
- uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ env.RUST_VERSION }}
- uses: Swatinem/rust-cache@v2
- uses: rui314/setup-mold@v1
- uses: buildjet/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: cargo-test-kms-${{ hashFiles('**/Cargo.lock') }}
- name: Run integration tests for kms only
run: cargo test -p fuel-core-tests --features aws-kms -- kms

Expand Down Expand Up @@ -286,6 +271,7 @@ jobs:
with:
toolchain: ${{ env.RUST_VERSION }}
targets: "wasm32-unknown-unknown"
- uses: Swatinem/rust-cache@v2

- name: Publish crate
uses: FuelLabs/publish-crates@v1
Expand Down Expand Up @@ -371,6 +357,8 @@ jobs:
toolchain: ${{ env.RUST_VERSION }}
target: ${{ matrix.job.target }},"wasm32-unknown-unknown"

- uses: Swatinem/rust-cache@v2

- name: Install cross
uses: baptiste0928/cargo-install@v1
with:
Expand Down

0 comments on commit 9284f84

Please sign in to comment.