Initial commit of v3 alpha1 #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: visionOS Tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
check-changes: | |
name: Check for Changes | |
runs-on: ubuntu-latest | |
outputs: | |
changed: ${{ steps.filter.outputs.changed }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- uses: dorny/paths-filter@v2 | |
id: filter | |
with: | |
filters: | | |
changed: | |
- '.github/workflows/visionos-tests.yml' | |
- '**/*.swift' | |
build-visionos-matrix: | |
name: visionOS Metrix | |
if: ${{ github.event_name == 'push' || needs.check-changes.outputs.changed == 'true' }} | |
needs: check-changes | |
strategy: | |
matrix: | |
xcode: [ "15.4" ] | |
os: [ macos-14 ] | |
runs-on: ${{ matrix.os }} | |
env: | |
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Build and Test | |
run: xcrun xcodebuild test -workspace . -scheme "Vexil" -destination "platform=visionOS Simulator,name=Any visionOS Simulator Device" | |
build-visionos: | |
runs-on: ubuntu-latest | |
name: visionOS Tests | |
if: ${{ github.event_name == 'push' || needs.check-changes.outputs.changed == 'true' }} | |
needs: build-visionos-matrix | |
steps: | |
- name: Check build matrix status | |
if: ${{ needs.build-visionos-matrix.result == 'failure' }} | |
run: exit 1 |