Skip to content

Commit 434c4ba

Browse files
committed
Updated GitHub CI
1 parent 62b3d9e commit 434c4ba

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,21 @@ jobs:
3636
- name: Unit Tests
3737
run: xcodebuild test -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "OSCKit-CI" -destination "platform=macOS" | xcpretty && exit ${PIPESTATUS[0]}
3838

39+
macOS-swift6:
40+
name: macOS (Swift 6.0)
41+
runs-on: macos-latest
42+
steps:
43+
- uses: actions/checkout@main
44+
- uses: maxim-lobanov/setup-xcode@v1
45+
with:
46+
xcode-version: latest-stable # Sometimes a newer version of Xcode is available but isn't yet made default
47+
- name: Set Package Swift Tools Version
48+
run: swift package tools-version --set "6.0"
49+
- name: Build
50+
run: xcodebuild build -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "OSCKit-CI" -destination "generic/platform=macOS,name=Any Mac" | xcpretty && exit ${PIPESTATUS[0]}
51+
- name: Unit Tests
52+
run: xcodebuild test -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "OSCKit-CI" -destination "platform=macOS" | xcpretty && exit ${PIPESTATUS[0]}
53+
3954
macCatalyst:
4055
name: macCatalyst
4156
runs-on: macos-latest
@@ -88,7 +103,7 @@ jobs:
88103
- name: Unit Tests
89104
run: xcodebuild test -workspace ".swiftpm/xcode/package.xcworkspace" -scheme "OSCKit-CI" -destination "platform=watchOS Simulator,name=Apple Watch Series 10 (46mm)" | xcpretty && exit ${PIPESTATUS[0]}
90105

91-
Examples:
106+
examples:
92107
name: Examples
93108
runs-on: macos-latest
94109
steps:

0 commit comments

Comments
 (0)