Skip to content

Add platform support for visionOS, macOS, watchOS, tvOS #32

Add platform support for visionOS, macOS, watchOS, tvOS

Add platform support for visionOS, macOS, watchOS, tvOS #32

Workflow file for this run

#
# This source file is part of the Stanford XCTRuntimeAssertions 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: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
with:
artifactname: XCTRuntimeAssertions-iOS.xcresult
runsonlabels: '["macOS", "self-hosted"]'
scheme: XCTRuntimeAssertions
buildandtest_watchos:
name: Build and Test Swift Package watchOS
uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
with:
runsonlabels: '["macOS", "self-hosted"]'
scheme: XCTRuntimeAssertions
destination: 'platform=watchOS Simulator,name=Apple Watch Series 9 (45mm)'
resultBundle: XCTRuntimeAssertions-watchOS.xcresult
artifactname: XCTRuntimeAssertions-watchOS.xcresult
buildandtest_visionos:
name: Build and Test Swift Package visionOS
uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
with:
runsonlabels: '["macOS", "self-hosted"]'
xcodeversion: latest
scheme: XCTRuntimeAssertions
destination: 'platform=visionOS Simulator,name=Apple Vision Pro'
resultBundle: XCTRuntimeAssertions-visionOS.xcresult
artifactname: XCTRuntimeAssertions-visionOS.xcresult
buildandtest_tvos:
name: Build and Test Swift Package tvOS
uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
with:
runsonlabels: '["macOS", "self-hosted"]'
xcodeversion: latest
scheme: XCTRuntimeAssertions
destination: 'platform=tvOS Simulator,name=Apple TV 4K (3rd generation)'
resultBundle: XCTRuntimeAssertions-tvOS.xcresult
artifactname: XCTRuntimeAssertions-tvOS.xcresult
buildandtest_macos:
name: Build and Test Swift Package macOS
uses: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
with:
runsonlabels: '["macOS", "self-hosted"]'
xcodeversion: latest
scheme: XCTRuntimeAssertions
destination: 'platform=macOS,arch=arm64'
resultBundle: XCTRuntimeAssertions-macOS.xcresult
artifactname: XCTRuntimeAssertions-macOS.xcresult
uploadcoveragereport:
name: Upload Coverage Report
needs: [buildandtest_ios, buildandtest_visionos, buildandtest_watchos, buildandtest_tvos, buildandtest_macos]
uses: StanfordBDHG/.github/.github/workflows/create-and-upload-coverage-report.yml@v2
with:
coveragereports: XCTRuntimeAssertions-iOS.xcresult XCTRuntimeAssertions-watchOS.xcresult XCTRuntimeAssertions-visionOS.xcresult XCTRuntimeAssertions-tvOS.xcresult XCTRuntimeAssertions-macOS.xcresult