Skip to content

Commit 567cafd

Browse files
committed
Swift 6 CI
1 parent 196126c commit 567cafd

File tree

1 file changed

+36
-7
lines changed

1 file changed

+36
-7
lines changed

.github/workflows/build.yml

Lines changed: 36 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,47 @@ 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
1921
run: swift test --enable-code-coverage --filter do_not_test
2022
- name: Test
2123
run: swift test --enable-code-coverage --skip-build
2224
- name: Gather code coverage
23-
run: xcrun llvm-cov export -format="lcov" .build/debug/SwiftDrawPackageTests.xctest/Contents/MacOS/SwiftDrawPackageTests -instr-profile .build/debug/codecov/default.profdata > coverage_report.lcov
25+
run: xcrun llvm-cov export -format="lcov" .build/debug/FlyingFoxPackageTests.xctest/Contents/MacOS/FlyingFoxPackageTests -instr-profile .build/debug/codecov/default.profdata > coverage_report.lcov
2426
- name: Upload Coverage
2527
uses: codecov/codecov-action@v4
2628
with:
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)