From b93cf93c96c50f948723343583aa917bd717177b Mon Sep 17 00:00:00 2001 From: Maksim Kurnikov Date: Sat, 9 Nov 2024 12:53:04 +0100 Subject: [PATCH 1/4] cache master only --- .github/workflows/check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index f1629c82..19c7fc31 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -29,7 +29,7 @@ jobs: uses: gradle/actions/setup-gradle@v4 with: # with `true`, caches will only be created in `master` branch, and PRs will run read-only - cache-read-only: false + cache-read-only: true - name: Build run: ./gradlew assemble --stacktrace -Pkotlin.incremental=false From 124d5219a144908407be27590d68db3adc438789 Mon Sep 17 00:00:00 2001 From: Maksim Kurnikov Date: Sat, 9 Nov 2024 13:02:48 +0100 Subject: [PATCH 2/4] cache downloaded aptos binaries --- .github/workflows/check.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 19c7fc31..459b9b42 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -30,6 +30,8 @@ jobs: with: # with `true`, caches will only be created in `master` branch, and PRs will run read-only cache-read-only: true + gradle-home-cache-includes: | + build/zip/*.zip - name: Build run: ./gradlew assemble --stacktrace -Pkotlin.incremental=false From 227e29f429757d11de1f52b96c998beb3a09c48b Mon Sep 17 00:00:00 2001 From: Maksim Kurnikov Date: Sat, 9 Nov 2024 13:03:13 +0100 Subject: [PATCH 3/4] try enabling cache to test --- .github/workflows/check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 459b9b42..2d9c301b 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -29,7 +29,7 @@ jobs: uses: gradle/actions/setup-gradle@v4 with: # with `true`, caches will only be created in `master` branch, and PRs will run read-only - cache-read-only: true + cache-read-only: false gradle-home-cache-includes: | build/zip/*.zip From 0ef748fea38003bb61588dfb03b751b7a2d8a1eb Mon Sep 17 00:00:00 2001 From: Maksim Kurnikov Date: Sat, 9 Nov 2024 13:27:59 +0100 Subject: [PATCH 4/4] disable zips caching --- .github/workflows/check.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 2d9c301b..19c7fc31 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -29,9 +29,7 @@ jobs: uses: gradle/actions/setup-gradle@v4 with: # with `true`, caches will only be created in `master` branch, and PRs will run read-only - cache-read-only: false - gradle-home-cache-includes: | - build/zip/*.zip + cache-read-only: true - name: Build run: ./gradlew assemble --stacktrace -Pkotlin.incremental=false