Skip to content

Commit fafb247

Browse files
committed
Add sscache for GitHub actions
1 parent 6340e40 commit fafb247

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

.github/workflows/pre-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,8 @@ jobs:
4040
with:
4141
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
4242

43-
- name: Rust cache
44-
uses: swatinem/rust-cache@v2
45-
with:
46-
workspaces: './app/src-tauri -> target'
43+
- name: Run sccache-cache
44+
uses: mozilla-actions/sccache-action@v0.0.9
4745

4846
- name: Setup Node.js
4947
uses: actions/setup-node@v4
@@ -104,6 +102,8 @@ jobs:
104102
GIT_COMMIT_HASH: ${{ env.GIT_COMMIT_HASH }}
105103
GIT_BRANCH: ${{ env.GIT_BRANCH }}
106104
BUILD_TIMESTAMP: ${{ env.BUILD_TIMESTAMP }}
105+
SCCACHE_GHA_ENABLED: "true"
106+
RUSTC_WRAPPER: "sccache"
107107
with:
108108
projectPath: './app'
109109
tagName: ${{ github.ref_name }}

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,8 @@ jobs:
4040
with:
4141
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
4242

43-
- name: Rust cache
44-
uses: swatinem/rust-cache@v2
45-
with:
46-
workspaces: './app/src-tauri -> target'
43+
- name: Run sccache-cache
44+
uses: mozilla-actions/sccache-action@v0.0.9
4745

4846
- name: Setup Node.js
4947
uses: actions/setup-node@v4
@@ -76,6 +74,8 @@ jobs:
7674
GIT_COMMIT_HASH: ${{ env.GIT_COMMIT_HASH }}
7775
GIT_BRANCH: ${{ env.GIT_BRANCH }}
7876
BUILD_TIMESTAMP: ${{ env.BUILD_TIMESTAMP }}
77+
SCCACHE_GHA_ENABLED: "true"
78+
RUSTC_WRAPPER: "sccache"
7979
with:
8080
projectPath: './app'
8181
tagName: v__VERSION__

.github/workflows/test-build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,8 @@ jobs:
3535
with:
3636
targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}
3737

38-
- name: Rust cache
39-
uses: swatinem/rust-cache@v2
40-
with:
41-
workspaces: './app/src-tauri -> target'
38+
- name: Run sccache-cache
39+
uses: mozilla-actions/sccache-action@v0.0.9
4240

4341
- name: Setup Node.js
4442
uses: actions/setup-node@v4
@@ -68,6 +66,8 @@ jobs:
6866
GIT_COMMIT_HASH: ${{ env.GIT_COMMIT_HASH }}
6967
GIT_BRANCH: ${{ env.GIT_BRANCH }}
7068
BUILD_TIMESTAMP: ${{ env.BUILD_TIMESTAMP }}
69+
SCCACHE_GHA_ENABLED: "true"
70+
RUSTC_WRAPPER: "sccache"
7171
with:
7272
projectPath: './app'
7373
args: ${{ matrix.args }}

0 commit comments

Comments
 (0)