Skip to content

Commit 466f481

Browse files
alb3rtoclaude
authored andcommitted
ci: add macOS UI test job to build workflow
Add a test-utm job that runs UTMUITests against the macOS scheme on every push/PR. The job depends on build-sysroot (same as build-utm) so it can share the cached sysroot and run in parallel with the other build jobs. xcodebuild test -scheme macOS -destination 'platform=macOS' \ CODE_SIGNING_ALLOWED=NO Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 45584f7 commit 466f481

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,31 @@ jobs:
204204
with:
205205
name: UTM-${{ matrix.configuration.scheme }}-${{ matrix.configuration.platform }}-${{ matrix.configuration.arch }}
206206
path: UTM.xcarchive.tgz
207+
test-utm:
208+
name: Test UTM (macOS)
209+
runs-on: ${{ fromJSON(needs.configuration.outputs.runner) }}
210+
needs: [configuration, build-sysroot]
211+
steps:
212+
- name: Checkout
213+
uses: actions/checkout@v3
214+
with:
215+
submodules: recursive
216+
- name: Cache Sysroot
217+
uses: actions/cache/restore@v4
218+
with:
219+
path: ./sysroot-macos-arm64
220+
key: macos-arm64-${{ hashFiles('scripts/build_dependencies.sh') }}-${{ hashFiles('patches/**') }}
221+
fail-on-cache-miss: true
222+
- name: Setup Xcode
223+
shell: bash
224+
run: |
225+
[[ "$(xcode-select -p)" == "${{ env.BUILD_XCODE_PATH }}"* ]] || sudo xcode-select -s "${{ env.BUILD_XCODE_PATH }}"
226+
- name: Run Tests
227+
run: |
228+
xcodebuild test \
229+
-scheme macOS \
230+
-destination 'platform=macOS' \
231+
CODE_SIGNING_ALLOWED=NO
207232
build-universal:
208233
name: Build UTM (Universal Mac)
209234
runs-on: ${{ fromJSON(needs.configuration.outputs.runner) }}

0 commit comments

Comments
 (0)