Skip to content

Commit

Permalink
Add support for visionOS, macOS and tvOS (#4)
Browse files Browse the repository at this point in the history
# Add support for visionOS, macOS and tvOS

## ♻️ Current situation & Problem
This PR adds support for visionOS, macOS and tvOS. These are not major
changes and only required changes within the Package.swift file.


## ⚙️ Release Notes 
* Add support for visionOS, macOS and tvOS


## 📚 Documentation
-


## ✅ Testing
We are currently testing iOS, watchOS and visionOS in CI.


## 📝 Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/StanfordSpezi/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordSpezi/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/StanfordSpezi/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordSpezi/.github/blob/main/CONTRIBUTING.md).
  • Loading branch information
Supereg authored Feb 4, 2024
1 parent d1e6d4c commit 0346857
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 4 deletions.
36 changes: 33 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
runsonlabels: '["macOS", "self-hosted"]'
scheme: SpeziFoundation
resultBundle: SpeziFoundationWatchOS.xcresult
destination: 'platform=watchOS Simulator,name=Apple Watch Series 8 (45mm)'
destination: 'platform=watchOS Simulator,name=Apple Watch Series 9 (45mm)'
artifactname: SpeziFoundationWatchOS.xcresult
packagevisionos:
name: Build and Test Swift Package visionOS
Expand All @@ -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: 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]
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
coveragereports: SpeziFoundation.xcresult SpeziFoundationWatchOS.xcresult SpeziFoundationVisionOS.xcresult SpeziFoundationTvOS.xcresult SpeziFoundationMacOS.xcresult
4 changes: 4 additions & 0 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,9 @@ authors:
- family-names: "Schmiedmayer"
given-names: "Paul"
orcid: "https://orcid.org/0000-0002-8607-9148"
- family-names: "Bauer"
given-names: "Andreas"
orcid: "https://orcid.org/0000-0002-1680-237X"
title: "SpeziFoundation"
doi: 10.5281/zenodo.10077558
url: "https://github.com/StanfordSpezi/SpeziFoundation"
5 changes: 4 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ let package = Package(
name: "SpeziFoundation",
platforms: [
.iOS(.v17),
.watchOS(.v10)
.watchOS(.v10),
.visionOS(.v1),
.macOS(.v14),
.tvOS(.v17)
],
products: [
.library(name: "SpeziFoundation", targets: ["SpeziFoundation"])
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ SPDX-License-Identifier: MIT
# SpeziFoundation

[![Build and Test](https://github.com/StanfordSpezi/SpeziFoundation/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/StanfordSpezi/SpeziFoundation/actions/workflows/build-and-test.yml)
[![codecov](https://codecov.io/gh/StanfordSpezi/SpeziFoundation/graph/badge.svg?token=9S5PQRVKF8)](https://codecov.io/gh/StanfordSpezi/SpeziFoundation)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.10077558.svg)](https://doi.org/10.5281/zenodo.10077558)
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FStanfordSpezi%2FSpeziFoundation%2Fbadge%3Ftype%3Dswift-versions)](https://swiftpackageindex.com/StanfordSpezi/SpeziFoundation)
[![](https://img.shields.io/endpoint?url=https%3A%2F%2Fswiftpackageindex.com%2Fapi%2Fpackages%2FStanfordSpezi%2FSpeziFoundation%2Fbadge%3Ftype%3Dplatforms)](https://swiftpackageindex.com/StanfordSpezi/SpeziFoundation)

Spezi Foundation provides a base layer of functionality useful in many applications, including fundamental types, algorithms, extensions, and data structures.

Expand Down

0 comments on commit 0346857

Please sign in to comment.