diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index da1dcb73..885d37af 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,6 +9,8 @@ name: CI env: RUSTFLAGS: -D warnings CARGO_TERM_COLOR: always + SCCACHE_GHA_ENABLED: "true" + RUSTC_WRAPPER: "sccache" jobs: build: @@ -39,9 +41,8 @@ jobs: - uses: rui314/setup-mold@v1 - - uses: Swatinem/rust-cache@v2 - with: - key: ${{ matrix.os }}-${{ matrix.target }} + - name: Run sccache-cache + uses: mozilla-actions/sccache-action@v0.0.3 - name: Install latest nextest release uses: taiki-e/install-action@nextest diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 569d870e..674d0888 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,8 @@ on: env: RUSTFLAGS: -D warnings CARGO_TERM_COLOR: always + SCCACHE_GHA_ENABLED: "true" + RUSTC_WRAPPER: "sccache" jobs: create-release: @@ -45,9 +47,8 @@ jobs: - uses: rui314/setup-mold@v1 - - uses: Swatinem/rust-cache@v2 - with: - key: ${{ matrix.os }}-${{ matrix.target }} + - name: Run sccache-cache + uses: mozilla-actions/sccache-action@v0.0.3 - uses: taiki-e/upload-rust-binary-action@v1 with: