summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
authorDavid Sherret <dsherret@users.noreply.github.com>2023-01-11 16:21:02 -0500
committerGitHub <noreply@github.com>2023-01-11 22:21:02 +0100
commitb0eaa0ba70485b3cccfc4eb8dfb28087ce62e56a (patch)
tree98d8cb267747d0150b6dab133d62db484bc82a04 /.github/workflows/ci.yml
parentb0e0e4f24b91c9be6a9bb005dc1f683d3b563bd6 (diff)
chore(ci): save cache on main at end of workflow (#17354)
Seems like our caching was totally broken. We need to save the cache after building and not before. ``` Warning: Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved. Warning: Cache save failed. ```
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml22
1 files changed, 11 insertions, 11 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index fb18722d6..99763cc73 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -240,17 +240,7 @@ jobs:
~/.cargo/git/db
key: '18-cargo-home-${{ matrix.os }}-${{ hashFiles(''Cargo.lock'') }}'
if: steps.exit_early.outputs.EXIT_EARLY != 'true'
- - name: Cache build output (main)
- uses: actions/cache/save@v3
- if: steps.exit_early.outputs.EXIT_EARLY != 'true' && ((matrix.profile == 'release' || matrix.profile == 'fastci') && github.ref == 'refs/heads/main')
- with:
- path: |-
- ./target
- !./target/*/gn_out
- !./target/*/*.zip
- !./target/*/*.tar.gz
- key: '18-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-${{ github.sha }}'
- - name: Cache build output (PR)
+ - name: Restore cache build output (PR)
uses: actions/cache/restore@v3
if: 'steps.exit_early.outputs.EXIT_EARLY != ''true'' && (github.ref != ''refs/heads/main'' && !startsWith(github.ref, ''refs/tags/''))'
with:
@@ -532,6 +522,16 @@ jobs:
target/release/lib.deno.d.ts
body_path: target/release/release-notes.md
draft: true
+ - name: Save cache build output (main)
+ uses: actions/cache/save@v3
+ if: steps.exit_early.outputs.EXIT_EARLY != 'true' && ((matrix.profile == 'release' || matrix.profile == 'fastci') && github.ref == 'refs/heads/main')
+ with:
+ path: |-
+ ./target
+ !./target/*/gn_out
+ !./target/*/*.zip
+ !./target/*/*.tar.gz
+ key: '18-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-${{ github.sha }}'
publish-canary:
name: publish canary
runs-on: ubuntu-20.04