Skip to content

Commit 9c84292

Browse files
committed
chore(ci): enable build cache for temporary initial branch
1 parent 26c60d4 commit 9c84292

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ jobs:
3434
run: "node --version && npm --version"
3535
- name: "Setup Gradle"
3636
uses: "gradle/actions/setup-gradle@v4"
37+
with:
38+
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/initial-version' }} # TODO remove when initial-version is removed
3739
- name: "Run check on build-logic subproject"
3840
run: "./gradlew :build-logic:check --no-configuration-cache"
3941
- name: "Run check on project"
@@ -59,7 +61,6 @@ jobs:
5961
runs-on: "${{ matrix.runner }}"
6062
env:
6163
SEGMENT_DOWNLOAD_TIMEOUT_MINS: "15"
62-
BUILDCACHE_LOCAL_DEFAULT_DIRECTORY: "true"
6364
steps:
6465
- name: "Checkout"
6566
uses: "actions/checkout@v4"
@@ -76,6 +77,8 @@ jobs:
7677
node-version: "lts/jod" # 22
7778
- name: "Setup Gradle"
7879
uses: "gradle/actions/setup-gradle@v4"
80+
with:
81+
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/initial-version' }} # TODO remove when initial-version is removed
7982
- name: "Check if binary works"
8083
run: "./gradlew testAllCliNative"
8184
- name: "junit result"

0 commit comments

Comments
 (0)