From b317ecfa01e745a14df9a1155ccdbce9ed95a4a3 Mon Sep 17 00:00:00 2001 From: Ikiru Yoshizaki <3856350+guitarrapc@users.noreply.github.com> Date: Wed, 18 Sep 2024 16:27:33 +0900 Subject: [PATCH] ci: set max-parallel to restrict up to 2 run [skip ci] --- .github/workflows/build-debug.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-debug.yml b/.github/workflows/build-debug.yml index 8f0b86d..5c069f6 100644 --- a/.github/workflows/build-debug.yml +++ b/.github/workflows/build-debug.yml @@ -22,6 +22,7 @@ jobs: if: ${{ ((github.event_name == 'push' && github.repository_owner == 'Cysharp') || startsWith(github.event.pull_request.head.label, 'Cysharp:')) && github.triggering_actor != 'dependabot[bot]' }} strategy: fail-fast: false + max-parallel: 2 matrix: unity: ["2021.3.41f1", "2022.3.39f1", "6000.0.12f1"] # Test with LTS runs-on: ubuntu-latest @@ -43,6 +44,7 @@ jobs: # Execute scripts: Export Package # /opt/Unity/Editor/Unity -quit -batchmode -nographics -silent-crashes -logFile -projectPath . -executeMethod PackageExporter.Export - name: Build Unity (.unitypacakge) + if: ${{ startsWith(matrix.unity, '2021') }} # only execute once uses: Cysharp/Actions/.github/actions/unity-builder@main env: UNITY_EMAIL: ${{ steps.op-load-secret.outputs.UNITY_EMAIL }} @@ -60,7 +62,7 @@ jobs: # Execute UnitTest # /opt/Unity/Editor/Unity -quit -batchmode -nographics -silent-crashes -logFile -projectPath . -executeMethod UnitTestBuilder.BuildUnitTest /headless /ScriptBackend IL2CPP /BuildTarget StandaloneLinux64 - - name: Build UnitTest + - name: Build UnitTest (IL2CPP) uses: Cysharp/Actions/.github/actions/unity-builder@main env: UNITY_EMAIL: ${{ steps.op-load-secret.outputs.UNITY_EMAIL }}