From 4cce3de9dffac9afefc0f90ba50a0db65b6ee222 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Mon, 4 Oct 2021 17:28:44 -0700 Subject: [PATCH] ci: re-enable GHA caching Reverts #875 since moby/buildkit#2276 is now closed. Signed-off-by: Andrea Luzzardi --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 632769f4..76f8a662 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -97,7 +97,13 @@ jobs: mkdir -p ~/.config/dagger echo "$DAGGER_AGE_KEY" > ~/.config/dagger/keys.txt + - name: Expose GitHub Runtime + uses: crazy-max/ghaction-github-runtime@v1 + - name: Integration test + env: + DAGGER_CACHE_TO: "type=gha,scope=integration" + DAGGER_CACHE_FROM: "type=gha,scope=integration" run: | env make core-integration @@ -151,7 +157,13 @@ jobs: aws --endpoint-url=http://localhost:4566 s3 mb s3://dagger-ci aws --endpoint-url=http://localhost:4566 ecr create-repository --repository-name dagger-ci + - name: Expose GitHub Runtime + uses: crazy-max/ghaction-github-runtime@v1 + - name: Universe Test + env: + DAGGER_CACHE_TO: "type=gha,scope=universe" + DAGGER_CACHE_FROM: "type=gha,scope=universe" run: | make universe-test @@ -252,6 +264,12 @@ jobs: mkdir -p ~/.config/dagger echo "$DAGGER_AGE_KEY" > ~/.config/dagger/keys.txt + - name: Expose GitHub Runtime + uses: crazy-max/ghaction-github-runtime@v1 + - name: Documentation Test + env: + DAGGER_CACHE_TO: "type=gha,scope=docs" + DAGGER_CACHE_FROM: "type=gha,scope=docs" run: | make doc-test