Add sccache to build #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- name: Configure sccache | ||
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 |