From 9974fa394b93d822fde39efca51e4a07a5f08a99 Mon Sep 17 00:00:00 2001 From: Sergei Blinov Date: Wed, 20 Sep 2023 00:17:18 +0200 Subject: [PATCH] update ci cache --- .github/workflows/prerelease.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/prerelease.yaml b/.github/workflows/prerelease.yaml index 05c933be1..9c41a9a59 100644 --- a/.github/workflows/prerelease.yaml +++ b/.github/workflows/prerelease.yaml @@ -109,8 +109,10 @@ jobs: uses: actions/cache@v3 with: # IMPORTANT: path here should be relative to the workspace directory - path: .result - key: result-${{ matrix.bin }} + path: | + .result + ${{ matrix.dir }}/target + key: builder-${{ runner.os }}-result-${{ matrix.bin }} - name: Check if can use cache if: matrix.cache @@ -170,8 +172,8 @@ jobs: CARGO_NET_RETRY: 10 RUST_BACKTRACE: full RUSTUP_MAX_RETRIES: 10 - run: | + cargo update cargo zigbuild -r --target ${{ matrix.target }} ls -lA target/${{ matrix.target }}/release