Skip to content

Commit

Permalink
ci(workflows): use sccache for faster compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
arunanshub committed Sep 21, 2024
1 parent 6c642fa commit 63e41e8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ env:
# prevents out of disk space error
CARGO_INCREMENTAL: 0
CARGO_PROFILE_DEV_DEBUG: 0
# enable caching for faster compilation
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

jobs:
build:
Expand All @@ -29,6 +32,9 @@ jobs:
with:
components: clippy

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

- name: Setup Rust cache
uses: Swatinem/rust-cache@v2

Expand Down Expand Up @@ -75,6 +81,9 @@ jobs:
- name: Install Rust
uses: dtolnay/rust-toolchain@stable

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

- name: Setup Rust cache
uses: Swatinem/rust-cache@v2

Expand Down

0 comments on commit 63e41e8

Please sign in to comment.