Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test macos-15 runner #3

Closed
wants to merge 7 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 21 additions & 4 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,16 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-13]
os: [macos-15]
unity-version: [2021.x, 2022.x, 6000.x]
build-target:
- VisionOS
- iOS
- StandaloneOSX
exclude:
- os: macos-15
unity-version: 2021.x
build-target: VisionOS
steps:
- uses: actions/checkout@v4
- run: 'npm install -g openupm-cli'
Expand All @@ -47,8 +52,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 }}
Expand All @@ -73,7 +85,13 @@ 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: |
sudo xcodebuild -runFirstLaunch
sudo xcrun simctl list
sudo xcodebuild -downloadPlatform visionOS
sudo xcodebuild -runFirstLaunch
- uses: ./ # buildalon/unity-xcode-builder
id: xcode-build
with:
Expand All @@ -83,7 +101,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 }}"
Expand Down
Loading