From d02bea7692e646df2a7dbc5eda47938081bffe43 Mon Sep 17 00:00:00 2001 From: Brady Fomegne Date: Mon, 4 Mar 2024 10:04:17 +0100 Subject: [PATCH] ci: attempt to speedup --- .github/workflows/rust.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 889dd07..fda2c9b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -30,7 +30,9 @@ jobs: steps: - uses: actions/checkout@v3 - uses: Swatinem/rust-cache@v2 - + with: + # To only cache runs from `master` + save-if: ${{ github.ref == 'refs/heads/main' }} - if: matrix.os == 'ubuntu-latest' uses: awalsh128/cache-apt-pkgs-action@latest with: