1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

chore(CI): update to actions/cache@v3 (#17201)

This commit is contained in:
Asher Gomez 2023-01-04 17:05:38 +11:00 committed by GitHub
parent 1b001d1b18
commit e010eb69c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -237,9 +237,7 @@ jobs:
# In main branch, always creates fresh cache # In main branch, always creates fresh cache
- name: Cache build output (main) - name: Cache build output (main)
# TODO(kt3k): Change the version to the released version uses: actions/cache/save@v3
# when https://github.com/actions/cache/pull/489 (or 571) is merged.
uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b
if: (matrix.profile == 'release' || matrix.profile == 'fastci') && if: (matrix.profile == 'release' || matrix.profile == 'fastci') &&
github.ref == 'refs/heads/main' github.ref == 'refs/heads/main'
with: with:
@ -253,9 +251,7 @@ jobs:
# Restore cache from the latest 'main' branch build. # Restore cache from the latest 'main' branch build.
- name: Cache build output (PR) - name: Cache build output (PR)
# TODO(kt3k): Change the version to the released version uses: actions/cache/restore@v3
# when https://github.com/actions/cache/pull/489 (or 571) is merged.
uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b
if: github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/') if: github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')
with: with:
path: | path: |
@ -267,12 +263,6 @@ jobs:
restore-keys: | restore-keys: |
18-cargo-target-${{ matrix.os }}-${{ matrix.profile }}- 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 - name: Apply and update mtime cache
if: matrix.profile == 'release' if: matrix.profile == 'release'
uses: ./.github/mtime_cache uses: ./.github/mtime_cache