Skip to content

Swift 6 Compatibility #38

Swift 6 Compatibility

Swift 6 Compatibility #38

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:
packageios:
name: Build and Test Swift Package iOS
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
with:
runsonlabels: '["macOS", "self-hosted"]'
scheme: SpeziFoundation
artifactname: SpeziFoundation.xcresult
resultBundle: SpeziFoundation.xcresult
packageios_latest:
name: Build and Test Swift Package iOS Latest
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
with:
runsonlabels: '["macOS", "self-hosted"]'
scheme: SpeziFoundation
xcodeversion: latest
swiftVersion: 6
artifactname: SpeziFoundation-Latest.xcresult
resultBundle: SpeziFoundation-Latest.xcresult
packagewatchos:
name: Build and Test Swift Package watchOS
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
with:
runsonlabels: '["macOS", "self-hosted"]'
scheme: SpeziFoundation
resultBundle: SpeziFoundationWatchOS.xcresult
destination: 'platform=watchOS Simulator,name=Apple Watch Series 9 (45mm)'
artifactname: SpeziFoundationWatchOS.xcresult
packagevisionos:
name: Build and Test Swift Package visionOS
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
with:
runsonlabels: '["macOS", "self-hosted"]'
xcodeversion: latest
scheme: SpeziFoundation
resultBundle: SpeziFoundationVisionOS.xcresult
destination: 'platform=visionOS Simulator,name=Apple Vision Pro'
artifactname: SpeziFoundationVisionOS.xcresult
packagetvos:
name: Build and Test Swift Package tvOS
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
with:
runsonlabels: '["macOS", "self-hosted"]'
xcodeversion: latest
scheme: SpeziFoundation
resultBundle: SpeziFoundationTvOS.xcresult
destination: 'platform=tvOS Simulator,name=Apple TV 4K (3rd generation)'
artifactname: SpeziFoundationTvOS.xcresult
packagemacos:
name: Build and Test Swift Package macOS
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
with:
runsonlabels: '["macOS", "self-hosted"]'
xcodeversion: latest
scheme: SpeziFoundation
resultBundle: SpeziFoundationMacOS.xcresult
destination: 'platform=macOS,arch=arm64'
artifactname: SpeziFoundationMacOS.xcresult
codeql:
name: CodeQL
uses: StanfordSpezi/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
with:
codeql: true
test: false
scheme: SpeziFoundation
permissions:
security-events: write
actions: read
uploadcoveragereport:
name: Upload Coverage Report
needs: [packageios, packagewatchos, packagevisionos, packagetvos, packagemacos]
uses: StanfordBDHG/.github/.github/workflows/create-and-upload-coverage-report.yml@v2
with:
coveragereports: SpeziFoundation.xcresult SpeziFoundationWatchOS.xcresult SpeziFoundationVisionOS.xcresult SpeziFoundationTvOS.xcresult SpeziFoundationMacOS.xcresult
secrets:
token: ${{ secrets.CODECOV_TOKEN }}