-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2b15fb3
commit 727cb92
Showing
3 changed files
with
60 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
github: [mattmassicotte] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- 'README.md' | ||
- 'CODE_OF_CONDUCT.md' | ||
- '.editorconfig' | ||
- '.spi.yml' | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: macOS-14 | ||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_15.3.app/Contents/Developer | ||
strategy: | ||
matrix: | ||
destination: | ||
- "platform=macOS" | ||
- "platform=macOS,variant=Mac Catalyst" | ||
- "platform=iOS Simulator,name=iPhone 12" | ||
- "platform=tvOS Simulator,name=Apple TV" | ||
- "platform=visionOS Simulator,name=Apple Vision Pro" | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Test platform ${{ matrix.destination }} | ||
run: set -o pipefail && xcodebuild -scheme Glyph -destination "${{ matrix.destination }}" test | xcbeautify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,31 @@ | ||
// swift-tools-version: 5.10 | ||
// The swift-tools-version declares the minimum version of Swift required to build this package. | ||
|
||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "Glyph", | ||
products: [ | ||
// Products define the executables and libraries a package produces, making them visible to other packages. | ||
.library( | ||
name: "Glyph", | ||
targets: ["Glyph"]), | ||
], | ||
targets: [ | ||
// Targets are the basic building blocks of a package, defining a module or a test suite. | ||
// Targets can depend on other targets in this package and products from dependencies. | ||
.target( | ||
name: "Glyph"), | ||
.testTarget( | ||
name: "GlyphTests", | ||
dependencies: ["Glyph"]), | ||
] | ||
name: "Glyph", | ||
platforms: [ | ||
.macOS(.v10_15), | ||
.macCatalyst(.v13), | ||
.iOS(.v13), | ||
.tvOS(.v13), | ||
.visionOS(.v1), | ||
], | ||
products: [ | ||
.library(name: "Glyph", targets: ["Glyph"]), | ||
], | ||
targets: [ | ||
.target(name: "Glyph"), | ||
.testTarget(name: "GlyphTests", dependencies: ["Glyph"]), | ||
] | ||
) | ||
|
||
let swiftSettings: [SwiftSetting] = [ | ||
.enableExperimentalFeature("StrictConcurrency"), | ||
] | ||
|
||
for target in package.targets { | ||
var settings = target.swiftSettings ?? [] | ||
settings.append(contentsOf: swiftSettings) | ||
target.swiftSettings = settings | ||
} |