Skip to content

Commit a207bf7

Browse files
authored
Update CI (jpsim#333)
Run on Swift 5.5 / Xcode 13+
1 parent bdcb040 commit a207bf7

File tree

7 files changed

+49
-12
lines changed

7 files changed

+49
-12
lines changed

.github/workflows/bazel.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ on:
2121

2222
jobs:
2323
MacOS:
24-
runs-on: macos-latest
24+
runs-on: macos-11
2525
steps:
2626
- uses: actions/checkout@v2
2727
- name: MacOS build test
@@ -47,7 +47,7 @@ jobs:
4747
Linux:
4848
strategy:
4949
matrix:
50-
tag: ['5.1', '5.2', '5.3', '5.4']
50+
tag: ['5.1', '5.2', '5.3', '5.4', '5.5']
5151
runs-on: ubuntu-latest
5252
container:
5353
image: swift:${{ matrix.tag }}

.github/workflows/cmake.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ jobs:
2525
CMake:
2626
strategy:
2727
matrix:
28-
xcode_version: ['11.2.1', '11.3.1', '11.4.1', '11.5', '11.6', '11.7', '12.0.1', '12.1', '12.2', '12.3', '12.4']
29-
runs-on: macos-latest
28+
xcode_version: ['11.7', '12.4', '12.5.1', '13.0', '13.1']
29+
runs-on: macos-11
3030
env:
3131
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode_version }}.app
3232
steps:

.github/workflows/jazzy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
Jazzy:
2626
runs-on: ubuntu-latest
2727
container:
28-
image: norionomura/jazzy:0.13.5_swift-5.2.5
28+
image: norionomura/jazzy:0.13.6_swift-5.3.3
2929
steps:
3030
- uses: actions/checkout@v2
3131
- run: bundle install --path vendor/bundle

.github/workflows/pod_lib_lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
name: pod lib lint
2323
runs-on: macos-11
2424
env:
25-
DEVELOPER_DIR: /Applications/Xcode_12.5.app
25+
DEVELOPER_DIR: /Applications/Xcode_13.1.app
2626
steps:
2727
- uses: actions/checkout@v2
2828
- run: bundle install --path vendor/bundle

.github/workflows/swiftlint_analyze.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
Analyze:
2424
runs-on: macos-11
2525
env:
26-
DEVELOPER_DIR: /Applications/Xcode_12.5.app
26+
DEVELOPER_DIR: /Applications/Xcode_13.1.app
2727
steps:
2828
- uses: actions/checkout@v2
2929
- name: Generate xcodebuild.log

.github/workflows/swiftpm.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
strategy:
2929
matrix:
3030
xcode_version: ['11.2.1', '11.3.1', '11.4.1', '11.5', '11.6', '12.0.1', '12.1']
31-
runs-on: macos-latest
31+
runs-on: macOS-10.15
3232
env:
3333
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode_version }}.app
3434
steps:
@@ -40,7 +40,7 @@ jobs:
4040
Xcode_Big_Sur:
4141
strategy:
4242
matrix:
43-
xcode_version: ['11.7', '12.2', '12.4', '12.5', '13.0']
43+
xcode_version: ['11.7', '12.4', '12.5.1', '13.0', '13.1']
4444
runs-on: macos-11
4545
env:
4646
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode_version }}.app
@@ -50,7 +50,7 @@ jobs:
5050
- run: YAMS_DEFAULT_ENCODING=UTF16 swift test --parallel
5151
- run: YAMS_DEFAULT_ENCODING=UTF8 swift test --parallel
5252
- name: Code Coverage
53-
if: matrix.xcode_version == '12.5'
53+
if: matrix.xcode_version == '13.1'
5454
run: |
5555
swift test --enable-code-coverage
5656
xcrun llvm-cov export -format="lcov" .build/debug/YamsPackageTests.xctest/Contents/MacOS/YamsPackageTests -instr-profile .build/debug/codecov/default.profdata > coverage.lcov
@@ -62,7 +62,7 @@ jobs:
6262
Linux:
6363
strategy:
6464
matrix:
65-
tag: ['5.1', '5.2', '5.3', '5.4']
65+
tag: ['5.1', '5.2', '5.3', '5.4', '5.5']
6666
runs-on: ubuntu-latest
6767
container:
6868
image: swift:${{ matrix.tag }}

.github/workflows/xcodebuild.yml

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,44 @@ jobs:
3737
- version: '12.2'
3838
- version: '12.4'
3939
xcode_flags: ['-scheme Yams -project Yams.xcodeproj']
40-
runs-on: macos-latest
40+
runs-on: macOS-10.15
41+
env:
42+
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode.version }}.app
43+
steps:
44+
- uses: actions/checkout@v2
45+
- run: xcodebuild -version
46+
- name: macOS with UTF16
47+
if: always()
48+
run: YAMS_DEFAULT_ENCODING=UTF16 xcodebuild ${{ matrix.xcode_flags }} test | xcpretty
49+
shell: bash
50+
- name: macOS with UTF8
51+
if: always()
52+
run: YAMS_DEFAULT_ENCODING=UTF8 xcodebuild ${{ matrix.xcode_flags }} test | xcpretty
53+
shell: bash
54+
- name: iPhone Simulator
55+
if: always()
56+
run: xcodebuild ${{ matrix.xcode_flags }} test -sdk iphonesimulator -destination "name=iPhone 8" | xcpretty
57+
shell: bash
58+
- name: Apple TV Simulator
59+
if: always()
60+
run: xcodebuild ${{ matrix.xcode_flags }} test -sdk appletvsimulator -destination "name=Apple TV 4K" | xcpretty
61+
shell: bash
62+
- name: watchOS Simulator
63+
if: always()
64+
run: xcodebuild ${{ matrix.xcode_flags }} build -sdk watchsimulator | xcpretty
65+
shell: bash
66+
67+
xcodebuild_Big_Sur:
68+
strategy:
69+
matrix:
70+
xcode:
71+
- version: '11.7'
72+
- version: '12.4'
73+
- version: '12.5.1'
74+
- version: '13.0'
75+
- version: '13.1'
76+
xcode_flags: ['-scheme Yams -project Yams.xcodeproj']
77+
runs-on: macos-11
4178
env:
4279
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode.version }}.app
4380
steps:

0 commit comments

Comments
 (0)