From 1a4de8e911384ff4750ea6fb2b21bb02a203df15 Mon Sep 17 00:00:00 2001 From: Logan McNaughton <848146+loganmc10@users.noreply.github.com> Date: Tue, 24 Mar 2026 14:43:14 +0100 Subject: [PATCH] Don't use caching for releases --- .github/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ae2148d..5192d61 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,6 +36,7 @@ jobs: with: target: ${{ matrix.target }} rustflags: "" + cache: ${{ github.ref_type != 'tag' }} - name: Set LLVM_VERSION run: echo "LLVM_VERSION=$(rustc --version --verbose | grep "LLVM version" | cut -d':' -f2 | xargs)" >> $GITHUB_ENV - name: Install SDL Dependencies @@ -91,6 +92,7 @@ jobs: with: target: ${{ matrix.target }} rustflags: "" + cache: ${{ github.ref_type != 'tag' }} - name: Set LLVM_VERSION run: | $llvm_version = rustc --version --verbose | Select-String "LLVM version" | ForEach-Object { $_.Line.Split(":")[1].Trim() } @@ -145,6 +147,7 @@ jobs: with: target: ${{ matrix.target }} rustflags: "" + cache: ${{ github.ref_type != 'tag' }} - name: Set LLVM_VERSION run: echo "LLVM_VERSION=$(rustc --version --verbose | grep "LLVM version" | cut -d':' -f2 | xargs)" >> $GITHUB_ENV - name: Install LLVM and Clang