Skip to content

Commit fb79a0a

Browse files
committed
Swift 6 CI
1 parent 196126c commit fb79a0a

File tree

1 file changed

+35
-6
lines changed

1 file changed

+35
-6
lines changed

.github/workflows/build.yml

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,15 @@ on:
66
workflow_dispatch:
77

88
jobs:
9-
xcode_15_3:
10-
runs-on: macos-14
11-
env:
12-
DEVELOPER_DIR: /Applications/Xcode_15.3.app/Contents/Developer
9+
xcode_16:
10+
runs-on: macos-15
1311
steps:
1412
- name: Checkout
1513
uses: actions/checkout@v4
14+
- name: 🔍 Xcode Select
15+
run: |
16+
XCODE_PATH=`mdfind "kMDItemCFBundleIdentifier == 'com.apple.dt.Xcode' && kMDItemVersion = '16.*'" -onlyin /Applications | head -1`
17+
echo "DEVELOPER_DIR=$XCODE_PATH/Contents/Developer" >> $GITHUB_ENV
1618
- name: Version
1719
run: swift --version
1820
- name: Build
@@ -27,10 +29,24 @@ jobs:
2729
token: ${{ secrets.CODECOV_TOKEN }}
2830
files: ./coverage_report.lcov
2931

30-
xcode_15_2:
32+
xcode_15_4:
33+
runs-on: macos-14
34+
env:
35+
DEVELOPER_DIR: /Applications/Xcode_15.3.app/Contents/Developer
36+
steps:
37+
- name: Checkout
38+
uses: actions/checkout@v4
39+
- name: Version
40+
run: swift --version
41+
- name: Build
42+
run: swift build --build-tests
43+
- name: Test
44+
run: swift test --skip-build
45+
46+
xcode_15_3:
3147
runs-on: macos-14
3248
env:
33-
DEVELOPER_DIR: /Applications/Xcode_15.2.app/Contents/Developer
49+
DEVELOPER_DIR: /Applications/Xcode_15.3.app/Contents/Developer
3450
steps:
3551
- name: Checkout
3652
uses: actions/checkout@v4
@@ -93,3 +109,16 @@ jobs:
93109
run: swift build --build-tests
94110
- name: Test
95111
run: swift test --skip-build
112+
113+
linux_6:
114+
runs-on: ubuntu-latest
115+
container: swift:6.0
116+
steps:
117+
- name: Checkout
118+
uses: actions/checkout@v4
119+
- name: Version
120+
run: swift --version
121+
- name: Build
122+
run: swift build --build-tests
123+
- name: Test
124+
run: swift test --skip-build

0 commit comments

Comments
 (0)