Skip to content

Commit 2bb46e2

Browse files
authored
get xcode thaht supports swift 16.1
1 parent 1282584 commit 2bb46e2

File tree

1 file changed

+14
-17
lines changed

1 file changed

+14
-17
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
name: "Swift 6 Module Template CI"
22

3-
on:
3+
on:
44
push:
5-
branches:
5+
branches:
66
- main
77
pull_request:
88
branches:
99
- main
1010

11-
concurrency:
11+
concurrency:
1212
group: ${{ github.ref_name }}
1313
cancel-in-progress: true
1414

@@ -19,7 +19,7 @@ jobs:
1919
timeout-minutes: 10
2020
steps:
2121
- uses: actions/checkout@v4
22-
22+
2323
- name: Test configure script with environment variables
2424
env:
2525
SMT_XXPROJECTXNAMEXX: "TestModule"
@@ -32,7 +32,7 @@ jobs:
3232
run: |
3333
./configure.swift
3434
ls -la OUTPUT/
35-
35+
3636
- name: Verify generated project structure
3737
run: |
3838
cd OUTPUT/TestModule
@@ -43,41 +43,38 @@ jobs:
4343
test -d Sources/TestModule
4444
test -d Tests/TestModuleTests
4545
test -d .github/workflows
46-
46+
4747
- name: Upload generated project as artifact
4848
uses: actions/upload-artifact@v4
4949
with:
5050
name: generated-project
5151
path: OUTPUT/TestModule/
52-
5352
test-generated-project:
5453
name: Test generated project using template workflow
5554
needs: test-configure-script
56-
runs-on: macos-latest
55+
runs-on: macos-15
5756
timeout-minutes: 10
5857
steps:
5958
- uses: actions/checkout@v4
60-
59+
6160
- name: Download generated project
6261
uses: actions/download-artifact@v4
6362
with:
6463
name: generated-project
6564
path: TestModule/
66-
67-
- uses: swift-actions/setup-swift@v2
68-
with:
69-
swift-version: "6.1.0"
70-
65+
66+
- name: Select Xcode 16.1
67+
run: sudo xcode-select -s /Applications/Xcode_16.1.app
68+
7169
- name: Test generated Swift package
7270
run: |
7371
cd TestModule
7472
swift build
7573
swift test
76-
74+
7775
- name: Test generated Example project
7876
run: |
7977
cd TestModule/Example
80-
xcodebuild -project Example.xcodeproj -scheme Example -destination "platform=iOS Simulator,name=iPhone 15" clean build
81-
78+
xcodebuild -project Example.xcodeproj -scheme Example -destination "platform=iOS Simulator,name=iPhone 15,OS=18.1" clean build
8279
# delegate-to-template-workflow:
8380
# Don't know how to do this

0 commit comments

Comments
 (0)