Skip to content

armgit / Pake

Public Imported from GitHub
0

Turn any website into a lightweight desktop app with one command, on macOS, Windows and Linux.

perf: add sccache and shared rust-cache key to speed up parallel app builds

tw933f530fa4c704
diff --git a/.github/actions/setup-env/action.yml b/.github/actions/setup-env/action.yml
index 911b9c76..b2d54cfa 100644
--- a/.github/actions/setup-env/action.yml
+++ b/.github/actions/setup-env/action.yml
@@ -147,8 +147,20 @@ runs:
}
# Build optimizations (caching)
+ - name: Setup sccache
+ if: inputs.mode == 'build'
+ uses: mozilla-actions/[email protected]
+
+ - name: Enable sccache
+ if: inputs.mode == 'build'
+ shell: bash
+ run: |
+ echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
+ echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
+
- name: Setup Rust cache
if: inputs.mode == 'build'
uses: swatinem/rust-cache@v2
with:
workspaces: "src-tauri -> target"
+ shared-key: "pake-${{ runner.os }}"