Skip to content

Commit

Permalink
try sccache
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegn committed Aug 21, 2023
1 parent 266ba13 commit 1412618
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ name: CI
env:
RUSTFLAGS: -D warnings
CARGO_TERM_COLOR: always
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

jobs:
build:
Expand Down Expand Up @@ -39,9 +41,8 @@ jobs:

- uses: rui314/setup-mold@v1

- uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.os }}-${{ matrix.target }}
- name: Run sccache-cache
uses: mozilla-actions/[email protected]

- name: Install latest nextest release
uses: taiki-e/install-action@nextest
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
env:
RUSTFLAGS: -D warnings
CARGO_TERM_COLOR: always
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"

jobs:
create-release:
Expand Down Expand Up @@ -45,9 +47,8 @@ jobs:

- uses: rui314/setup-mold@v1

- uses: Swatinem/rust-cache@v2
with:
key: ${{ matrix.os }}-${{ matrix.target }}
- name: Run sccache-cache
uses: mozilla-actions/[email protected]

- uses: taiki-e/upload-rust-binary-action@v1
with:
Expand Down

0 comments on commit 1412618

Please sign in to comment.