Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): fix ci to restore the cache #18215

Merged
merged 3 commits into from
Mar 15, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
chore(ci): fix ci to restore the cache
  • Loading branch information
dsherret committed Mar 15, 2023
commit 3662cd28f3297ceb810e834f5cf60d5ada1915ee
10 changes: 6 additions & 4 deletions .github/workflows/ci.generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ const Runners = {
macos: "macos-12",
windows: `\${{ ${windowsRunnerCondition} }}`,
};
// bump this when you want to purge the cache
const cacheVersion = 19;

const installPkgsCommand =
"sudo apt-get install --no-install-recommends debootstrap clang-15 lld-15";
Expand Down Expand Up @@ -442,8 +444,8 @@ const ci = {
"!./target/*/*.tar.gz",
].join("\n"),
key: "never_saved",
"restore-keys":
"19-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-",
"restore-keys": cacheVersion +
"-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-",
},
},
{
Expand Down Expand Up @@ -857,8 +859,8 @@ const ci = {
"!./target/*/*.zip",
"!./target/*/*.tar.gz",
].join("\n"),
key:
"18-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-${{ github.sha }}",
key: cacheVersion +
"-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-${{ github.sha }}",
},
},
]),
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ jobs:
!./target/*/gn_out
!./target/*/*.zip
!./target/*/*.tar.gz
key: '18-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-${{ github.sha }}'
key: '19-cargo-target-${{ matrix.os }}-${{ matrix.profile }}-${{ github.sha }}'
publish-canary:
name: publish canary
runs-on: ubuntu-22.04
Expand Down