Skip to content

Commit 771b424

Browse files
committed
dynamically generate manifest for the runtime tests
1 parent cf6b192 commit 771b424

3 files changed

Lines changed: 27 additions & 3 deletions

File tree

.github/workflows/main.ci.cd.workflow.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,16 @@ jobs:
3333
rm -rf Assets/Plugins/StreamChat/SampleProject
3434
rm -rf Assets/Plugins/StreamChat/Samples
3535
36+
# The repo intentionally does not track Packages/manifest.json so the
37+
# legacy Unity 2020/2021 build job can fall back to its image's default
38+
# manifest. The IL2CPP runtime test job runs on Unity 6000.0 and must
39+
# pin its own packages (notably com.unity.test-framework for NUnit).
40+
- name: Install runtime-tests Packages/manifest.json
41+
run: |
42+
mkdir -p Packages
43+
cp .github/workflows/manifests/runtime-tests.manifest.json Packages/manifest.json
44+
rm -f Packages/packages-lock.json
45+
3646
- name: Prepare project for IL2CPP runtime tests
3747
uses: game-ci/unity-builder@v4
3848
env:
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"dependencies": {
3+
"com.unity.test-framework": "1.6.0",
4+
"com.unity.modules.unitywebrequest": "1.0.0",
5+
"com.unity.modules.jsonserialize": "1.0.0",
6+
"com.unity.modules.imgui": "1.0.0",
7+
"com.unity.modules.imageconversion": "1.0.0",
8+
"com.unity.modules.unitywebrequestassetbundle": "1.0.0",
9+
"com.unity.modules.unitywebrequestaudio": "1.0.0",
10+
"com.unity.modules.unitywebrequesttexture": "1.0.0",
11+
"com.unity.modules.unitywebrequestwww": "1.0.0",
12+
"com.unity.modules.assetbundle": "1.0.0",
13+
"com.unity.modules.audio": "1.0.0",
14+
"com.unity.modules.animation": "1.0.0"
15+
}
16+
}

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,7 @@ crashlytics-build.properties
8484
[Bb]in/
8585
[Oo]bj/
8686
_UpgradeReport_Files/
87-
[Pp]ackages/*
88-
!/[Pp]ackages/manifest.json
89-
!/[Pp]ackages/packages-lock.json
87+
[Pp]ackages/
9088

9189
Thumbs.db
9290
Desktop.ini

0 commit comments

Comments
 (0)