Skip to content

Commit

Permalink
test(bootstrap): use sccache
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Jan 31, 2023
1 parent b1e118d commit 61ff70e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,9 @@ jobs:
test-bootstrap:
name: Test Bootstrap
runs-on: ${{ matrix.os }}
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
strategy:
fail-fast: ${{ !contains(github.event.pull_request.labels.*.name, 'CI-no-fail-fast') }}
matrix:
Expand All @@ -439,11 +442,11 @@ jobs:
- uses: dtolnay/rust-toolchain@beta
if: steps.changes.outputs.changed == 'true'
# Caching
- name: Cache cargo build
- name: Sccache Setup
if: steps.changes.outputs.changed == 'true'
uses: Swatinem/rust-cache@v2
uses: Xuanwo/sccache-action@c94e27bef21ab3fb4a5152c8a878c53262b4abb0
with:
shared-key: maturin-build
version: "v0.4.0-pre.6"
- uses: actions/setup-python@v4
if: steps.changes.outputs.changed == 'true'
with:
Expand Down

0 comments on commit 61ff70e

Please sign in to comment.