From 4cce3de9dffac9afefc0f90ba50a0db65b6ee222 Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Mon, 4 Oct 2021 17:28:44 -0700 Subject: [PATCH 1/3] 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 From 541d3775c359e2a656dd62cbe2a766846568e30b Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Mon, 4 Oct 2021 17:29:23 -0700 Subject: [PATCH 2/3] ci: gha lint Signed-off-by: Andrea Luzzardi --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 76f8a662..55ded4c6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,9 @@ name: CI on: push: - branches: [ main ] + branches: [main] pull_request: - branches: [ main ] + branches: [main] jobs: lint: @@ -127,7 +127,7 @@ jobs: --health-start-period 5s --health-timeout 5s --health-interval 5s - --health-retries 10 + --health-retries 10 steps: - name: Check out @@ -215,7 +215,7 @@ jobs: --health-start-period 5s --health-timeout 5s --health-interval 5s - --health-retries 10 + --health-retries 10 steps: - name: Check out From cb5634329ca9f3eaa72bb3dede79913ca8283b1b Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Mon, 4 Oct 2021 17:56:08 -0700 Subject: [PATCH 3/3] ci: gha export with mode=max Signed-off-by: Andrea Luzzardi --- .github/workflows/ci.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55ded4c6..4bb0029f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -102,8 +102,8 @@ jobs: - name: Integration test env: - DAGGER_CACHE_TO: "type=gha,scope=integration" - DAGGER_CACHE_FROM: "type=gha,scope=integration" + DAGGER_CACHE_TO: "type=gha,mode=max,scope=integration" + DAGGER_CACHE_FROM: "type=gha,mode=max,scope=integration" run: | env make core-integration @@ -162,12 +162,13 @@ jobs: - name: Universe Test env: - DAGGER_CACHE_TO: "type=gha,scope=universe" - DAGGER_CACHE_FROM: "type=gha,scope=universe" + DAGGER_CACHE_TO: "type=gha,mode=max,scope=universe" + DAGGER_CACHE_FROM: "type=gha,mode=max,scope=universe" run: | make universe-test website: + name: Website runs-on: ubuntu-latest steps: - name: Checkout @@ -269,7 +270,7 @@ jobs: - name: Documentation Test env: - DAGGER_CACHE_TO: "type=gha,scope=docs" - DAGGER_CACHE_FROM: "type=gha,scope=docs" + DAGGER_CACHE_TO: "type=gha,mode=max,scope=docs" + DAGGER_CACHE_FROM: "type=gha,mode=max,scope=docs" run: | make doc-test