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