diff --git a/.github/actions/setup-rust/action.yml b/.github/actions/setup-rust/action.yml index 6e046b08f..4a30f2882 100644 --- a/.github/actions/setup-rust/action.yml +++ b/.github/actions/setup-rust/action.yml @@ -33,6 +33,9 @@ outputs: runs: using: "composite" steps: + - uses: mozilla-actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9 + - run: echo "RUSTC_WRAPPER=$SCCACHE_PATH" >> $GITHUB_ENV + shell: bash - name: Disable Windows Defender if: ${{ runner.os == 'Windows' }} run: Set-MpPreference -DisableRealtimeMonitoring $true @@ -62,3 +65,9 @@ runs: echo "nightly=$NIGHTLY" >> $GITHUB_OUTPUT shell: bash + + - name: Start sccache + run: $SCCACHE_PATH --start-server + shell: bash + env: + SCCACHE_CONF: ".github/actions/setup-rust/sccache.toml"