Skip to content

Commit c3146ec

Browse files
committed
ci: change Unit Test to IL2CPP
1 parent df16813 commit c3146ec

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/build-debug.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ jobs:
3939

4040
- uses: actions/checkout@v4
4141

42-
# /opt/Unity/Editor/Unity -quit -batchmode -nographics -silent-crashes -logFile -projectPath . -executeMethod UnitTestBuilder.BuildUnitTest /headless /ScriptBackend mono /BuildTarget StandaloneLinux64
43-
- name: Build UnitTest(Linux64, mono)
42+
# Execute Unittest
43+
# /opt/Unity/Editor/Unity -quit -batchmode -nographics -silent-crashes -logFile -projectPath . -executeMethod UnitTestBuilder.BuildUnitTest /headless /ScriptBackend IL2CPP /BuildTarget StandaloneLinux64
44+
- name: Build UnitTest
4445
uses: Cysharp/Actions/.github/actions/unity-builder@main
4546
env:
4647
UNITY_EMAIL: ${{ steps.op-load-secret.outputs.UNITY_EMAIL }}
@@ -51,9 +52,11 @@ jobs:
5152
unityVersion: ${{ matrix.unity }}
5253
targetPlatform: StandaloneLinux64
5354
buildMethod: UnitTestBuilder.BuildUnitTest
54-
customParameters: /headless /ScriptBackend mono
55+
customParameters: "/headless /ScriptBackend IL2CPP"
56+
- name: Check UnitTest file is generated
57+
run: ls -lR ./src/UniTask/bin/UnitTest
5558
- name: Execute UnitTest
56-
run: ./src/UniTask/bin/UnitTest/StandaloneLinux64_Mono2x/test
59+
run: ./src/UniTask/bin/UnitTest/StandaloneLinux64_IL2CPP/test
5760

5861
# Execute scripts: Export Package
5962
# /opt/Unity/Editor/Unity -quit -batchmode -nographics -silent-crashes -logFile -projectPath . -executeMethod PackageExporter.Export

0 commit comments

Comments
 (0)