From 047fbc216fdd0279718ee0d69428254513b3b644 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Fri, 15 May 2026 12:52:01 +0200 Subject: [PATCH] Fix CI: MacOS runner update breaks rust-cache action https://github.com/Swatinem/rust-cache/issues/341 --- .github/workflows/main.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2fb4584..357bfb8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -172,6 +172,9 @@ jobs: with: components: clippy - uses: Swatinem/rust-cache@v2 + with: + # Workaround for https://github.com/Swatinem/rust-cache/issues/341 + cache-bin: 'false' # we don't need to run cargo fmt here because both cargo fmt and cargo # fmt --all runs on all workspace packages so this is handled by # check_and_test above @@ -275,6 +278,9 @@ jobs: with: targets: ${{ matrix.platform.target }} - uses: Swatinem/rust-cache@v2 + with: + # Workaround for https://github.com/Swatinem/rust-cache/issues/341 + cache-bin: 'false' - name: Build rayhunter-check run: cargo build --bin rayhunter-check --release --target ${{ matrix.platform.target }} - uses: actions/upload-artifact@v4 @@ -411,6 +417,9 @@ jobs: with: targets: ${{ matrix.platform.target }} - uses: Swatinem/rust-cache@v2 + with: + # Workaround for https://github.com/Swatinem/rust-cache/issues/341 + cache-bin: 'false' - run: cargo build --package installer --bin installer --release --target ${{ matrix.platform.target }} - uses: actions/upload-artifact@v4 with: @@ -504,6 +513,10 @@ jobs: with: targets: ${{ matrix.platform.target }} - uses: Swatinem/rust-cache@v2 + with: + # Workaround for https://github.com/Swatinem/rust-cache/issues/341 + # bin caching breaks cargo resolution on macOS 15 runner images + cache-bin: 'false' - name: Build GUI installer shell: bash run: |