Skip to content

Commit 16fa51e

Browse files
author
Thomas Forbes
committed
Use sccache
1 parent 4a2a575 commit 16fa51e

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/homebrew.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
name: Homebrew
12
on:
23
push:
34
tags:

.github/workflows/test.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,12 @@ jobs:
3434
GCM_INTERACTIVE: never
3535
GIT_TERMINAL_PROMPT: 0
3636
RUST_BACKTRACE: "1"
37+
SCCACHE_GHA_ENABLED: "true"
38+
RUSTC_WRAPPER: "sccache"
3739
steps:
40+
- name: Run sccache-cache
41+
uses: mozilla-actions/sccache-action@v0.0.5
42+
3843
- name: Set workspace var
3944
shell: bash
4045
run: |
@@ -57,8 +62,6 @@ jobs:
5762
toolchain: stable
5863
override: true
5964

60-
- uses: Swatinem/rust-cache@v2
61-
6265
- name: Build
6366
uses: actions-rs/cargo@v1
6467
with:
@@ -129,12 +132,16 @@ jobs:
129132
checks:
130133
name: Checks
131134
runs-on: ubuntu-latest
135+
env:
136+
SCCACHE_GHA_ENABLED: "true"
137+
RUSTC_WRAPPER: "sccache"
132138
steps:
139+
- name: Run sccache-cache
140+
uses: mozilla-actions/sccache-action@v0.0.5
141+
133142
- name: Checkout sources
134143
uses: actions/checkout@v3
135144

136-
- uses: Swatinem/rust-cache@v2
137-
138145
- name: Install stable toolchain
139146
uses: actions-rs/toolchain@v1
140147
with:

0 commit comments

Comments
 (0)