From 1412618b11c6bf6de577a11728f61bfceddba953 Mon Sep 17 00:00:00 2001 From: Jerome Gravel-Niquet Date: Mon, 21 Aug 2023 10:37:47 -0400 Subject: [PATCH] try sccache --- .github/workflows/ci.yml | 7 ++++--- .github/workflows/release.yml | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) 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: