Skip to content

Commit

Permalink
Configure sccache hopefully
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigidity committed Jul 15, 2024
1 parent 4a59372 commit c166c05
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
lint:
name: Lint
runs-on: ubuntu-latest
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
steps:
- uses: actions/checkout@v4

Expand All @@ -45,6 +48,9 @@ jobs:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -78,9 +84,6 @@ jobs:
- name: Set up Rust
uses: dtolnay/rust-toolchain@stable

- name: Run sccache-cache
uses: mozilla-actions/[email protected]

- name: Build
run: cargo build --release

Expand Down Expand Up @@ -124,12 +127,18 @@ jobs:
benchmark:
name: Benchmark
runs-on: benchmark
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
steps:
- uses: actions/checkout@v4

- name: Set up Rust
uses: dtolnay/rust-toolchain@stable

- name: Run sccache-cache
uses: mozilla-actions/[email protected]

- name: Run benchmarks
run: cargo bench --workspace --exclude chia_rs

Expand All @@ -138,11 +147,16 @@ jobs:
runs-on: ubuntu-latest
env:
CARGO_PROFILE_RELEASE_LTO: false
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
steps:
- uses: actions/checkout@v4

- uses: dtolnay/rust-toolchain@nightly

- name: Run sccache-cache
uses: mozilla-actions/[email protected]

- name: Install cargo-fuzz
run: cargo +nightly install cargo-fuzz

Expand Down

0 comments on commit c166c05

Please sign in to comment.