From 951e3d9a14c7b6568127653b88383d04189aa4af Mon Sep 17 00:00:00 2001 From: Lucy Date: Tue, 15 Oct 2024 15:31:05 -0400 Subject: [PATCH] Use sccache in CI --- .github/workflows/nightly.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 3b2b0c4..2129ac1 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -50,10 +50,14 @@ jobs: sudo dpkg --add-architecture i386 sudo apt-get update sudo apt-get install libgcc-s1:i386 g++-multilib zlib1g-dev:i386 libssl-dev:i386 + - name: Setup sccache + uses: mozilla-actions/sccache-action@v0.0.6 - name: Build run: cargo build --release --package aneri --target "${{ matrix.os.target }}" --no-default-features --features "${{ matrix.features.features }}" --locked env: PKG_CONFIG_ALLOW_CROSS: 1 + SCCACHE_GHA_ENABLED: "true" + RUSTC_WRAPPER: "sccache" - name: Upload artifacts uses: actions/upload-artifact@v4 with: