Skip to content

Commit

Permalink
chore: use rust-cache
Browse files Browse the repository at this point in the history
  • Loading branch information
frolvanya committed Jan 24, 2025
1 parent 5211a34 commit d8331d9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 20 deletions.
22 changes: 14 additions & 8 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ on:
- 'near/**'
- 'omni-relayer/**'

env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

jobs:
lint:
runs-on: ubuntu-latest
Expand All @@ -33,8 +29,13 @@ jobs:
components: clippy, rustfmt
target: wasm32-unknown-unknown

- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.7
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
cache-all-crates: true
shared-key: "lint-${{ matrix.component }}"
workspaces: ${{ matrix.component }}

- name: Install cargo-near
run: |
Expand All @@ -58,8 +59,13 @@ jobs:
toolchain: 1.84.0
target: wasm32-unknown-unknown

- name: Run sccache-cache
uses: mozilla-actions/sccache-action@v0.0.7
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
cache-all-crates: true
shared-key: "build-test"
workspaces: near

- name: Install cargo-near
run: |
Expand Down
13 changes: 4 additions & 9 deletions near/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions near/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,3 @@ ethereum-types = { version = "0.15.1", default-features = false, features = ["rl
rlp = "0.6"
sha3 = "0.10.0"
rstest = "0.24.0"

[patch.crates-io]
cargo-near-build = { git = "https://github.com/dj8yfo/cargo-near", rev = "0fdf154175b6f62d6a3fee460dd43658aab68d53" }

0 comments on commit d8331d9

Please sign in to comment.