From 878d33115f7968f10b4aab58cdabd3eaf184b914 Mon Sep 17 00:00:00 2001 From: Ikiru Yoshizaki <3856350+guitarrapc@users.noreply.github.com> Date: Tue, 25 Apr 2023 19:39:40 +0900 Subject: [PATCH] chore: change unity build to cysharp actions --- .github/workflows/build-debug.yml | 16 +++++++++------- .github/workflows/build-release.yml | 9 +++++---- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-debug.yml b/.github/workflows/build-debug.yml index ae0e942..f7724f4 100644 --- a/.github/workflows/build-debug.yml +++ b/.github/workflows/build-debug.yml @@ -41,31 +41,33 @@ jobs: # Execute scripts: RuntimeUnitTestToolkit # /opt/Unity/Editor/Unity -quit -batchmode -nographics -silent-crashes -logFile -projectPath . -executeMethod UnitTestBuilder.BuildUnitTest /headless /ScriptBackend mono /BuildTarget StandaloneLinux64 - name: Build UnitTest(Linux64, mono) - uses: game-ci/unity-builder@v2 + uses: Cysharp/Actions/.github/actions/unity-builder@main env: - UNITY_LICENSE: ${{ secrets[matrix.license] }} + UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} + UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} + UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} with: projectPath: src/UniTask unityVersion: ${{ matrix.unity }} targetPlatform: StandaloneLinux64 buildMethod: UnitTestBuilder.BuildUnitTest customParameters: /headless /ScriptBackend mono - versioning: None - name: Execute UnitTest run: ./src/UniTask/bin/UnitTest/StandaloneLinux64_Mono2x/test # Execute scripts: Export Package # /opt/Unity/Editor/Unity -quit -batchmode -nographics -silent-crashes -logFile -projectPath . -executeMethod PackageExporter.Export - - name: Export unitypackage - uses: game-ci/unity-builder@v2 + - name: Build Unity (.unitypacakge) + uses: Cysharp/Actions/.github/actions/unity-builder@main env: - UNITY_LICENSE: ${{ secrets[matrix.license] }} + UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} + UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} + UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} with: projectPath: src/UniTask unityVersion: ${{ matrix.unity }} targetPlatform: StandaloneLinux64 buildMethod: PackageExporter.Export - versioning: None - uses: Cysharp/Actions/.github/actions/check-metas@main # check meta files with: diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 549794b..c2fa703 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -65,16 +65,17 @@ jobs: ref: ${{ needs.update-packagejson.outputs.sha }} # Execute scripts: Export Package # /opt/Unity/Editor/Unity -quit -batchmode -nographics -silent-crashes -logFile -projectPath . -executeMethod PackageExporter.Export - - name: Export unitypackage - uses: game-ci/unity-builder@v2 + - name: Build Unity (.unitypacakge) + uses: Cysharp/Actions/.github/actions/unity-builder@main env: - UNITY_LICENSE: ${{ secrets[matrix.license] }} + UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }} + UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }} + UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }} with: projectPath: src/UniTask unityVersion: ${{ matrix.unity }} targetPlatform: StandaloneLinux64 buildMethod: PackageExporter.Export - versioning: None - uses: Cysharp/Actions/.github/actions/check-metas@main # check meta files with: