Skip to content

Add sccache to build #1

Add sccache to build

Add sccache to build #1

Workflow file for this run

- name: Configure sccache

Check failure on line 1 in .github/workflows/build-setup.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-setup.yml

Invalid workflow file

You have an error in your yaml syntax on line 1
run: |
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Rust Cache
uses: Swatinem/rust-cache@v2
with:
prefix-key: "v1-rust"
shared-key: "${{ matrix.target }}-build"
cache-targets: "true"
cache-on-failure: "true"
cache-all-crates: "true"
save-if: ${{ github.ref == 'refs/heads/master' }}
workspaces: |
. -> target