Skip to content

Commit

Permalink
Adding tvOS and macOS builds. Adding back CodeQL
Browse files Browse the repository at this point in the history
  • Loading branch information
Supereg committed Feb 2, 2024
1 parent 3351793 commit 087c8f7
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
32 changes: 31 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,39 @@ jobs:
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: StanfordBDHG/.github/.github/workflows/xcodebuild-or-fastlane.yml@v2
with:
codeql: true
xcodeversion: '14.3.1'
scheme: TemplatePackage
permissions:
security-events: write
actions: read
uploadcoveragereport:
name: Upload Coverage Report
needs: [packageios, packagewatchos, packagevisionos]
uses: StanfordBDHG/.github/.github/workflows/create-and-upload-coverage-report.yml@v2
with:
coveragereports: SpeziFoundation.xcresult SpeziFoundationWatchOS.xcresult SpeziFoundationVisionOS.xcresult
coveragereports: SpeziFoundation.xcresult SpeziFoundationWatchOS.xcresult SpeziFoundationVisionOS.xcresult SpeziFoundationTvOS.xcresult.xcresult SpeziFoundationMacOS.xcresult
3 changes: 1 addition & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ let package = Package(
.watchOS(.v10),
.visionOS(.v1),
.macOS(.v14),
.tvOS(.v17),
.macCatalyst(.v17)
.tvOS(.v17)
],
products: [
.library(name: "SpeziFoundation", targets: ["SpeziFoundation"])
Expand Down

0 comments on commit 087c8f7

Please sign in to comment.