File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,14 +31,19 @@ jobs:
3131 with :
3232 lfs : true
3333
34+ # Use a custom packages list instead of the original manifest
35+ - name : Use CI Manifest
36+ run : cp Packages/manifest_ci.json Packages/manifest.json
37+
3438 # Test Cache
3539 - uses : actions/cache@v4.2.3
3640 with :
3741 path : Library
38- key : Library-${{ matrix.unityVersion }}
39- restore-keys :
40- Library-${{ matrix.unityVersion }}
41-
42+ # This ensures a clean Library if manifest_ci.json is changed
43+ key : Library-${{ matrix.unityVersion }}-${{ hashFiles('Packages/manifest.json') }}
44+ restore-keys : |
45+ Library-${{ matrix.unityVersion }}-
46+
4247 # Test Runner
4348 - uses : game-ci/unity-test-runner@v4.3.1
4449 id : tests
Original file line number Diff line number Diff line change @@ -37,13 +37,19 @@ jobs:
3737 with :
3838 lfs : true
3939
40+ # Use a custom packages list instead of the original manifest
41+ - name : Use CI Manifest
42+ run : cp Packages/manifest_ci.json Packages/manifest.json
43+
4044 # Test Cache
4145 - uses : actions/cache@v4.2.3
4246 with :
4347 path : Library
44- key : Library-${{ matrix.unityVersion }}
45- restore-keys :
46- Library-${{ matrix.unityVersion }}
48+ # This ensures a clean Library if manifest_ci.json is changed
49+ key : Library-${{ matrix.unityVersion }}-${{ hashFiles('Packages/manifest.json') }}
50+ restore-keys : |
51+ Library-${{ matrix.unityVersion }}-
52+
4753
4854 # Test Runner
4955 - uses : game-ci/unity-test-runner@v4.1.1
Original file line number Diff line number Diff line change @@ -39,14 +39,20 @@ jobs:
3939 fetch-depth : 0
4040 lfs : true
4141
42+ # Use a custom packages list instead of the original manifest
43+ - name : Use CI Manifest
44+ run : cp Packages/manifest_ci.json Packages/manifest.json
45+
4246 # Build Cache
4347 - uses : actions/cache@v4.2.3
4448 with :
4549 path : Library
46- key : Library-${{ matrix.unityVersion }}
47- restore-keys :
48- Library-${{ matrix.unityVersion }}
49-
50+ # This ensures a clean Library if manifest_ci.json is changed
51+ key : Library-${{ matrix.unityVersion }}-${{ hashFiles('Packages/manifest.json') }}
52+ restore-keys : |
53+ Library-${{ matrix.unityVersion }}-
54+
55+
5056 # Build
5157 - uses : game-ci/unity-builder@v4.3.0
5258 env :
Original file line number Diff line number Diff line change 1+ {
2+ "dependencies" : {
3+ "com.unity.2d.sprite" : " 1.0.0" ,
4+ "com.unity.test-framework" : " 1.4.5" ,
5+ "com.unity.modules.imageconversion" : " 1.0.0" ,
6+ "com.unity.modules.jsonserialize" : " 1.0.0" ,
7+ "com.unity.modules.particlesystem" : " 1.0.0" ,
8+ "com.unity.modules.physics2d" : " 1.0.0" ,
9+ "com.unity.modules.tilemap" : " 1.0.0"
10+ }
11+ }
You can’t perform that action at this time.
0 commit comments