diff options
author | Asher Gomez <ashersaupingomez@gmail.com> | 2023-01-04 17:05:38 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-04 15:05:38 +0900 |
commit | e010eb69c2d28feb530da1eb33ff57885ac49666 (patch) | |
tree | 3ffe331070421b950e2f43b3df2c4776e12ae665 | |
parent | 1b001d1b180535ce247b5ebd9d38435384ddf787 (diff) |
chore(CI): update to `actions/cache@v3` (#17201)
-rw-r--r-- | .github/workflows/ci.yml | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 911afe047..ec85c3cb5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -237,9 +237,7 @@ jobs: # In main branch, always creates fresh cache - name: Cache build output (main) - # TODO(kt3k): Change the version to the released version - # when https://github.com/actions/cache/pull/489 (or 571) is merged. - uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b + uses: actions/cache/save@v3 if: (matrix.profile == 'release' || matrix.profile == 'fastci') && github.ref == 'refs/heads/main' with: @@ -253,9 +251,7 @@ jobs: # Restore cache from the latest 'main' branch build. - name: Cache build output (PR) - # TODO(kt3k): Change the version to the released version - # when https://github.com/actions/cache/pull/489 (or 571) is merged. - uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b + uses: actions/cache/restore@v3 if: github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/') with: path: | @@ -267,12 +263,6 @@ jobs: restore-keys: | 18-cargo-target-${{ matrix.os }}-${{ matrix.profile }}- - # Don't save cache after building PRs or branches other than 'main'. - - name: Skip save cache (PR) - run: echo "CACHE_SKIP_SAVE=true" >> $GITHUB_ENV - shell: bash - if: github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/') - - name: Apply and update mtime cache if: matrix.profile == 'release' uses: ./.github/mtime_cache |