diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2538515..8343e7f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,8 @@ jobs: env: APPLE_CERTIFICATE_AVAILABLE: ${{ github.event_name == 'release' && secrets.APPLE_BUILD_CERTIFICATE_BASE64 != '' }} APPLE_SIGNING_AVAILABLE: ${{ github.event_name == 'release' && secrets.APPLE_BUILD_CERTIFICATE_BASE64 != '' && secrets.APPLE_SIGNING_IDENTITY != '' }} + RUSTC_WRAPPER: sccache + SCCACHE_GHA_ENABLED: "true" strategy: fail-fast: false matrix: @@ -97,6 +99,15 @@ jobs: toolchain: stable targets: ${{ matrix.target }} + - name: Cache Rust dependencies and build output + uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2 + with: + workspaces: src-tauri -> target + key: ${{ matrix.target }} + + - name: Setup sccache + uses: mozilla-actions/sccache-action@fc920bf0ec8de6ee65d409111f7ec508035751ba # v0.0.11 + - name: Stage Node.js runtime sidecar shell: bash run: node scripts/stage-pdpp-node.mjs --target "${{ matrix.target }}" --expected-platform "${{ matrix.node_platform }}" --expected-arch "${{ matrix.node_arch }}"