Skip to content

Commit 75f8fa8

Browse files
committed
Skip building if the cache is hit
1 parent b9f70bf commit 75f8fa8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
6262
- name: Cache Build Output
6363
uses: actions/cache@v4
64+
id: cache-build
6465
with:
6566
path: build
6667
key: Build-${{ matrix.targetPlatform }}-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
@@ -70,6 +71,7 @@ jobs:
7071
- run: echo "::add-mask::${{ secrets.LICENSE_SERVER_URL }}"
7172

7273
- uses: game-ci/unity-builder@v4
74+
if: steps.cache-build.outputs.cache-hit != 'true'
7375
with:
7476
unityVersion: ${{ env.UNITY_VERSION }}
7577
targetPlatform: ${{ matrix.targetPlatform }}

0 commit comments

Comments
 (0)