Skip to content

Add support for visionOS #171

Add support for visionOS

Add support for visionOS #171

Workflow file for this run

#
# This source file is part of the Stanford Spezi open-source project
#
# SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
#
# SPDX-License-Identifier: MIT
#
name: Build and Test
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
jobs:
buildandtest_ios:
name: Build and Test Swift Package iOS
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
strategy:
matrix:
include:
- buildConfig: Debug
artifactname: SpeziOnboarding-iOS.xcresult
- buildConfig: Release
artifactname: SpeziOnboarding-iOS-Release.xcresult
with:
runsonlabels: '["macOS", "self-hosted"]'
scheme: SpeziOnboarding
buildConfig: ${{ matrix.buildConfig }}
artifactname: ${{ matrix.artifactname }}
resultBundle: ${{ matrix.artifactname }}
buildandtest_visionos:
name: Build and Test Swift Package visionOS
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
strategy:
matrix:
include:
- buildConfig: Debug
artifactname: SpeziOnboarding-visionOS.xcresult
- buildConfig: Release
artifactname: SpeziOnboarding-visionOS-Release.xcresult
with:
runsonlabels: '["macOS", "self-hosted"]'
destination: 'platform=visionOS Simulator,name=Apple Vision Pro'
scheme: SpeziOnboarding
buildConfig: ${{ matrix.buildConfig }}
artifactname: ${{ matrix.artifactname }}
resultBundle: ${{ matrix.artifactname }}
buildandtestuitests_ios:
name: Build and Test UI Tests iOS
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
strategy:
matrix:
include:
- buildConfig: Debug
artifactname: TestApp-iOS.xcresult
- buildConfig: Release
artifactname: TestApp-iOS-Release.xcresult
with:
runsonlabels: '["macOS", "self-hosted"]'
path: 'Tests/UITests'
scheme: TestApp
buildConfig: ${{ matrix.buildConfig }}
artifactname: ${{ matrix.artifactname }}
resultBundle: ${{ matrix.artifactname }}
buildandtestuitests_ipad:
name: Build and Test UI Tests iPad
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
strategy:
matrix:
include:
- buildConfig: Debug
artifactname: TestApp-iPad.xcresult
- buildConfig: Release
artifactname: TestApp-iPad-Release.xcresult
with:
runsonlabels: '["macOS", "self-hosted"]'
destination: 'platform=iOS Simulator,name=iPad Air (5th generation)'
path: 'Tests/UITests'
scheme: TestApp
buildConfig: ${{ matrix.buildConfig }}
artifactname: ${{ matrix.artifactname }}
resultBundle: ${{ matrix.artifactname }}
buildandtestuitests_visionos:
name: Build and Test UI Tests visionOS
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
strategy:
matrix:
include:
- buildConfig: Debug
artifactname: TestApp-visionOS.xcresult
- buildConfig: Release
artifactname: TestApp-visionOS-Release.xcresult
with:
runsonlabels: '["macOS", "self-hosted"]'
destination: 'platform=visionOS Simulator,name=Apple Vision Pro'
path: 'Tests/UITests'
scheme: TestApp
buildConfig: ${{ matrix.buildConfig }}
artifactname: ${{ matrix.artifactname }}
resultBundle: ${{ matrix.artifactname }}
uploadcoveragereport:
name: Upload Coverage Report
needs: [buildandtest_ios, buildandtest_visionos, buildandtestuitests_ios, buildandtestuitests_ipad, buildandtestuitests_visionos]
uses: StanfordSpezi/.github/.github/workflows/create-and-upload-coverage-report.yml@v2
with:
coveragereports: SpeziOnboarding-iOS.xcresult SpeziOnboarding-visionOS.xcresult TestApp-iOS.xcresult TestApp-iPad.xcresult TestApp-visionOS.xcresult