From 2170234f6a0e09a5460f2a565808b9adb99a6691 Mon Sep 17 00:00:00 2001 From: Anton Baliasnikov Date: Wed, 27 Nov 2024 22:05:29 +0000 Subject: [PATCH 1/3] fix: add macos arm64 into exceptions for rust cache --- .github/actions/rust-unit-tests/action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/actions/rust-unit-tests/action.yml b/.github/actions/rust-unit-tests/action.yml index c938268..3e65441 100644 --- a/.github/actions/rust-unit-tests/action.yml +++ b/.github/actions/rust-unit-tests/action.yml @@ -34,6 +34,7 @@ runs: echo "target=--target ${{ inputs.target }}" >> "${GITHUB_OUTPUT}" - name: Rust cache + if: ${{ !(runner.os == 'macOS' && runner.arch == 'arm64') }} uses: Swatinem/rust-cache@v2 with: shared-key: "rust-cargo-cache-${{ runner.os }}-${{ runner.arch }}" From 624c13aea21cade969727a3dfa0ff5cb110f6e4d Mon Sep 17 00:00:00 2001 From: Oleksandr Zarudnyi Date: Thu, 28 Nov 2024 09:56:57 +0800 Subject: [PATCH 2/3] Set v1 --- .github/actions/rust-unit-tests/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/rust-unit-tests/action.yml b/.github/actions/rust-unit-tests/action.yml index 3e65441..9b69f54 100644 --- a/.github/actions/rust-unit-tests/action.yml +++ b/.github/actions/rust-unit-tests/action.yml @@ -35,7 +35,7 @@ runs: - name: Rust cache if: ${{ !(runner.os == 'macOS' && runner.arch == 'arm64') }} - uses: Swatinem/rust-cache@v2 + uses: Swatinem/rust-cache@v1 with: shared-key: "rust-cargo-cache-${{ runner.os }}-${{ runner.arch }}" save-if: ${{ github.ref == 'refs/heads/main' }} From fe09125679aa7e378a769ba0c39dc36d47573911 Mon Sep 17 00:00:00 2001 From: Oleksandr Zarudnyi Date: Thu, 28 Nov 2024 09:57:53 +0800 Subject: [PATCH 3/3] Set v2 --- .github/actions/rust-unit-tests/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/rust-unit-tests/action.yml b/.github/actions/rust-unit-tests/action.yml index 9b69f54..3e65441 100644 --- a/.github/actions/rust-unit-tests/action.yml +++ b/.github/actions/rust-unit-tests/action.yml @@ -35,7 +35,7 @@ runs: - name: Rust cache if: ${{ !(runner.os == 'macOS' && runner.arch == 'arm64') }} - uses: Swatinem/rust-cache@v1 + uses: Swatinem/rust-cache@v2 with: shared-key: "rust-cargo-cache-${{ runner.os }}-${{ runner.arch }}" save-if: ${{ github.ref == 'refs/heads/main' }}