From feb68456f5fc5cd304f31adc7597a954305fcc9b Mon Sep 17 00:00:00 2001 From: Stephen Hodgson Date: Thu, 26 Sep 2024 19:39:41 -0400 Subject: [PATCH 1/5] test macos-15 --- .github/workflows/validate.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index ee56839..8cf9d78 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -21,11 +21,12 @@ jobs: strategy: fail-fast: false matrix: - os: [macos-13] + os: [macos-15] unity-version: [2021.x, 2022.x, 6000.x] build-target: - iOS - StandaloneOSX + - VisionOS steps: - uses: actions/checkout@v4 - run: 'npm install -g openupm-cli' @@ -74,6 +75,14 @@ jobs: log-name: '${{ matrix.build-target }}-Build' args: '-quit -nographics -batchmode -executeMethod Buildalon.Editor.BuildPipeline.UnityPlayerBuildTools.StartCommandLineBuild -sceneList Assets/Scenes/SampleScene.unity -export -enableAppleAutomaticSigning -bundleIdentifier com.test.buildalon.xcode' + - name: Download visionOS + if: ${{ matrix.build-target == 'VisionOS' }} + run: | + sudo xcodebuild -runFirstLaunch + sudo xcrun simctl list + sudo xcodebuild -downloadPlatform visionOS + sudo xcodebuild -runFirstLaunch + - uses: ./ # buildalon/unity-xcode-builder id: xcode-build with: From 34a440d4c227ba9c888af7535025c8e160a0d2f8 Mon Sep 17 00:00:00 2001 From: Stephen Hodgson Date: Thu, 26 Sep 2024 19:42:51 -0400 Subject: [PATCH 2/5] . --- .github/workflows/validate.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 8cf9d78..dfb7043 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -74,7 +74,6 @@ jobs: build-target: ${{ matrix.build-target }} log-name: '${{ matrix.build-target }}-Build' args: '-quit -nographics -batchmode -executeMethod Buildalon.Editor.BuildPipeline.UnityPlayerBuildTools.StartCommandLineBuild -sceneList Assets/Scenes/SampleScene.unity -export -enableAppleAutomaticSigning -bundleIdentifier com.test.buildalon.xcode' - - name: Download visionOS if: ${{ matrix.build-target == 'VisionOS' }} run: | @@ -82,7 +81,6 @@ jobs: sudo xcrun simctl list sudo xcodebuild -downloadPlatform visionOS sudo xcodebuild -runFirstLaunch - - uses: ./ # buildalon/unity-xcode-builder id: xcode-build with: @@ -92,7 +90,6 @@ jobs: app-store-connect-issuer-id: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }} team-id: ${{ secrets.APPLE_TEAM_ID }} export-option: ad-hoc - - name: print outputs run: | echo "Executable: ${{ steps.xcode-build.outputs.executable }}" From 4bd0a7f402cb779d959799cb3a7e3359d29d91c5 Mon Sep 17 00:00:00 2001 From: Stephen Hodgson Date: Thu, 26 Sep 2024 19:53:35 -0400 Subject: [PATCH 3/5] fix pro license activation --- .github/workflows/validate.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index dfb7043..6f01446 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -24,9 +24,10 @@ jobs: os: [macos-15] unity-version: [2021.x, 2022.x, 6000.x] build-target: + - VisionOS - iOS - StandaloneOSX - - VisionOS + max-parallel: 2 steps: - uses: actions/checkout@v4 - run: 'npm install -g openupm-cli' @@ -48,8 +49,15 @@ jobs: $projectPath = "${{ github.workspace }}/UnityProject" echo "UNITY_PROJECT_PATH=$projectPath" >> $env:GITHUB_ENV shell: pwsh - # Activates the installation with the provided credentials - uses: buildalon/activate-unity-license@v1 + if: ${{ matrix.build-target == 'VisionOS' }} + with: + license: 'Professional' + username: ${{ secrets.UNITY_USERNAME }} + password: ${{ secrets.UNITY_PASSWORD }} + serial: ${{ secrets.UNITY_SERIAL }} + - uses: buildalon/activate-unity-license@v1 + if: ${{ matrix.build-target != 'VisionOS' }} with: license: 'Personal' username: ${{ secrets.UNITY_USERNAME }} From 62bd64eb06ace97280e80c587fcf3f9435de94d2 Mon Sep 17 00:00:00 2001 From: Stephen Hodgson Date: Thu, 26 Sep 2024 20:04:14 -0400 Subject: [PATCH 4/5] exclude 2021.x for visionOS --- .github/workflows/validate.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index 6f01446..d9cb94d 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -27,6 +27,10 @@ jobs: - VisionOS - iOS - StandaloneOSX + exclude: + - os: macos-15 + unity-version: 2021.x + build-target: VisionOS max-parallel: 2 steps: - uses: actions/checkout@v4 From d3ea45d08f4210581acfcfa4e0037ffbab830f01 Mon Sep 17 00:00:00 2001 From: Stephen Hodgson Date: Thu, 26 Sep 2024 20:05:25 -0400 Subject: [PATCH 5/5] . --- .github/workflows/validate.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml index d9cb94d..82d26bb 100644 --- a/.github/workflows/validate.yml +++ b/.github/workflows/validate.yml @@ -31,7 +31,6 @@ jobs: - os: macos-15 unity-version: 2021.x build-target: VisionOS - max-parallel: 2 steps: - uses: actions/checkout@v4 - run: 'npm install -g openupm-cli'