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

Keep using actions/cache for now because we aren't using buildjet for everything atm

This commit is contained in:
David Sherret 2023-06-08 11:46:14 -04:00
parent e97d950013
commit bc87252c7a

View file

@ -480,7 +480,7 @@ const ci = {
},
{
name: "Cache Cargo home",
uses: "buildjet/cache@v3",
uses: "actions/cache@v3",
with: {
// See https://doc.rust-lang.org/cargo/guide/cargo-home.html#caching-the-cargo-home-in-ci
path: [
@ -495,7 +495,7 @@ const ci = {
{
// Restore cache from the latest 'main' branch build.
name: "Restore cache build output (PR)",
uses: "buildjet/cache/restore@v3",
uses: "actions/cache/restore@v3",
if:
"github.ref != 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')",
with: {
@ -924,7 +924,7 @@ const ci = {
{
// In main branch, always create a fresh cache
name: "Save cache build output (main)",
uses: "buildjet/cache/save@v3",
uses: "actions/cache/save@v3",
if:
"(matrix.job == 'test' || matrix.job == 'lint') && github.ref == 'refs/heads/main'",
with: {