Skip to content

Commit 074fd3c

Browse files
authored
[CI] Add macOS 12 / Xcode 13.3 / Swift 5.6 jobs (jpsim#349)
* [CI] Add macOS 12 / Xcode 13.3 / Swift 5.6 jobs * Fix Apple TV on Xcode 13.3 * Update jazzy to 0.14.2 * set sdk * Revert Analyze CI job to Xcode 13.2.1
1 parent fcb0a9e commit 074fd3c

File tree

8 files changed

+124
-51
lines changed

8 files changed

+124
-51
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-11
24+
runs-on: macos-12
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.4', '5.5']
50+
tag: ['5.4', '5.5', '5.6']
5151
runs-on: ubuntu-latest
5252
container:
5353
image: swift:${{ matrix.tag }}

.github/workflows/cmake.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,20 @@ jobs:
3838
- run: cmake --build build
3939
- run: cmake --build build --target install
4040
- run: file /usr/local/lib/swift/macosx/libYams.dylib | grep "Mach-O 64-bit dynamically linked shared library x86_64"
41+
42+
CMake_Monterey:
43+
strategy:
44+
matrix:
45+
xcode_version: ['13.3']
46+
runs-on: macos-12
47+
env:
48+
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode_version }}.app
49+
steps:
50+
- uses: actions/checkout@v2
51+
- run: brew install cmake ninja
52+
- run: swift -version
53+
- run: rm -rf build
54+
- run: cmake -B build -G Ninja -S . -DCMAKE_BUILD_TYPE=Release
55+
- run: cmake --build build
56+
- run: cmake --build build --target install
57+
- run: file /usr/local/lib/swift/macosx/libYams.dylib | grep "Mach-O 64-bit dynamically linked shared library x86_64"

.github/workflows/jazzy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
ImageOS: ubuntu18
3535
- uses: fwal/setup-swift@v1
3636
with:
37-
swift-version: "5.5"
37+
swift-version: "5.6"
3838
- name: Install SourceKitten
3939
uses: fjcaetano/[email protected]
4040
with:

.github/workflows/pod_lib_lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ on:
2020
jobs:
2121
pod_lib_lint:
2222
name: pod lib lint
23-
runs-on: macos-11
23+
runs-on: macos-12
2424
env:
25-
DEVELOPER_DIR: /Applications/Xcode_13.2.1.app
25+
DEVELOPER_DIR: /Applications/Xcode_13.3.app
2626
steps:
2727
- uses: actions/checkout@v2
2828
- run: bundle install --path vendor/bundle

.github/workflows/swiftlint_analyze.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,13 @@ jobs:
2323
Analyze:
2424
runs-on: macos-11
2525
env:
26+
# TODO: Move to Xcode 13.3 when issues are addressed
27+
# https://github.com/jpsim/Yams/runs/5649876813?check_suite_focus=true
2628
DEVELOPER_DIR: /Applications/Xcode_13.2.1.app
2729
steps:
2830
- uses: actions/checkout@v2
2931
- name: Generate xcodebuild.log
30-
run: xcodebuild -scheme Yams -project Yams.xcodeproj clean build-for-testing > xcodebuild.log
32+
run: xcodebuild -sdk macosx -scheme Yams -project Yams.xcodeproj clean build-for-testing > xcodebuild.log
3133
shell: bash
3234
- name: Install SwiftLint
3335
run: brew install swiftlint || brew upgrade swiftlint

.github/workflows/swiftpm.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,19 @@ jobs:
4646
fi
4747
env: { 'CODECOV_TOKEN': '${{ secrets.CODECOV_TOKEN }}' }
4848

49+
Xcode_Monterey:
50+
strategy:
51+
matrix:
52+
xcode_version: ['13.3']
53+
runs-on: macos-12
54+
env:
55+
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode_version }}.app
56+
steps:
57+
- uses: actions/checkout@v2
58+
- run: swift -version
59+
- run: YAMS_DEFAULT_ENCODING=UTF16 swift test --parallel
60+
- run: YAMS_DEFAULT_ENCODING=UTF8 swift test --parallel
61+
4962
Linux:
5063
strategy:
5164
matrix:

.github/workflows/xcodebuild.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,36 @@ jobs:
5757
if: always()
5858
run: xcodebuild ${{ matrix.xcode_flags }} build -sdk watchsimulator | xcpretty
5959
shell: bash
60+
61+
xcodebuild_Monterey:
62+
strategy:
63+
matrix:
64+
xcode:
65+
- version: '13.3'
66+
xcode_flags: ['-scheme Yams -project Yams.xcodeproj']
67+
runs-on: macos-12
68+
env:
69+
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode.version }}.app
70+
steps:
71+
- uses: actions/checkout@v2
72+
- run: xcodebuild -version
73+
- name: macOS with UTF16
74+
if: always()
75+
run: YAMS_DEFAULT_ENCODING=UTF16 xcodebuild ${{ matrix.xcode_flags }} test | xcpretty
76+
shell: bash
77+
- name: macOS with UTF8
78+
if: always()
79+
run: YAMS_DEFAULT_ENCODING=UTF8 xcodebuild ${{ matrix.xcode_flags }} test | xcpretty
80+
shell: bash
81+
- name: iPhone Simulator
82+
if: always()
83+
run: xcodebuild ${{ matrix.xcode_flags }} test -sdk iphonesimulator -destination "name=iPhone 8" | xcpretty
84+
shell: bash
85+
- name: Apple TV Simulator
86+
if: always()
87+
run: xcodebuild ${{ matrix.xcode_flags }} test -sdk appletvsimulator -destination "name=Apple TV 4K (2nd generation)" | xcpretty
88+
shell: bash
89+
- name: watchOS Simulator
90+
if: always()
91+
run: xcodebuild ${{ matrix.xcode_flags }} build -sdk watchsimulator | xcpretty
92+
shell: bash

Gemfile.lock

Lines changed: 53 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,103 +1,111 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
CFPropertyList (3.0.2)
5-
activesupport (4.2.11.1)
6-
i18n (~> 0.7)
7-
minitest (~> 5.1)
8-
thread_safe (~> 0.3, >= 0.3.4)
9-
tzinfo (~> 1.1)
10-
algoliasearch (1.27.1)
4+
CFPropertyList (3.0.5)
5+
rexml
6+
activesupport (6.1.5)
7+
concurrent-ruby (~> 1.0, >= 1.0.2)
8+
i18n (>= 1.6, < 2)
9+
minitest (>= 5.1)
10+
tzinfo (~> 2.0)
11+
zeitwerk (~> 2.3)
12+
addressable (2.8.0)
13+
public_suffix (>= 2.0.2, < 5.0)
14+
algoliasearch (1.27.5)
1115
httpclient (~> 2.8, >= 2.8.3)
1216
json (>= 1.5.1)
1317
atomos (0.1.3)
14-
claide (1.0.3)
15-
cocoapods (1.9.1)
16-
activesupport (>= 4.0.2, < 5)
18+
claide (1.1.0)
19+
cocoapods (1.11.3)
20+
addressable (~> 2.8)
1721
claide (>= 1.0.2, < 2.0)
18-
cocoapods-core (= 1.9.1)
22+
cocoapods-core (= 1.11.3)
1923
cocoapods-deintegrate (>= 1.0.3, < 2.0)
20-
cocoapods-downloader (>= 1.2.2, < 2.0)
24+
cocoapods-downloader (>= 1.4.0, < 2.0)
2125
cocoapods-plugins (>= 1.0.0, < 2.0)
2226
cocoapods-search (>= 1.0.0, < 2.0)
23-
cocoapods-stats (>= 1.0.0, < 2.0)
2427
cocoapods-trunk (>= 1.4.0, < 2.0)
2528
cocoapods-try (>= 1.1.0, < 2.0)
2629
colored2 (~> 3.1)
2730
escape (~> 0.0.4)
2831
fourflusher (>= 2.3.0, < 3.0)
2932
gh_inspector (~> 1.0)
30-
molinillo (~> 0.6.6)
33+
molinillo (~> 0.8.0)
3134
nap (~> 1.0)
32-
ruby-macho (~> 1.4)
33-
xcodeproj (>= 1.14.0, < 2.0)
34-
cocoapods-core (1.9.1)
35-
activesupport (>= 4.0.2, < 6)
35+
ruby-macho (>= 1.0, < 3.0)
36+
xcodeproj (>= 1.21.0, < 2.0)
37+
cocoapods-core (1.11.3)
38+
activesupport (>= 5.0, < 7)
39+
addressable (~> 2.8)
3640
algoliasearch (~> 1.0)
3741
concurrent-ruby (~> 1.1)
3842
fuzzy_match (~> 2.0.4)
3943
nap (~> 1.0)
4044
netrc (~> 0.11)
45+
public_suffix (~> 4.0)
4146
typhoeus (~> 1.0)
42-
cocoapods-deintegrate (1.0.4)
43-
cocoapods-downloader (1.3.0)
47+
cocoapods-deintegrate (1.0.5)
48+
cocoapods-downloader (1.5.1)
4449
cocoapods-plugins (1.0.0)
4550
nap
46-
cocoapods-search (1.0.0)
47-
cocoapods-stats (1.1.0)
48-
cocoapods-trunk (1.4.1)
51+
cocoapods-search (1.0.1)
52+
cocoapods-trunk (1.6.0)
4953
nap (>= 0.8, < 2.0)
5054
netrc (~> 0.11)
51-
cocoapods-try (1.1.0)
55+
cocoapods-try (1.2.0)
5256
colored2 (3.1.2)
53-
concurrent-ruby (1.1.6)
57+
concurrent-ruby (1.1.10)
5458
escape (0.0.4)
55-
ethon (0.12.0)
56-
ffi (>= 1.3.0)
57-
ffi (1.12.2)
59+
ethon (0.15.0)
60+
ffi (>= 1.15.0)
61+
ffi (1.15.5)
5862
fourflusher (2.3.1)
5963
fuzzy_match (2.0.4)
6064
gh_inspector (1.1.3)
6165
httpclient (2.8.3)
62-
i18n (0.9.5)
66+
i18n (1.10.0)
6367
concurrent-ruby (~> 1.0)
64-
jazzy (0.13.2)
68+
jazzy (0.14.2)
6569
cocoapods (~> 1.5)
6670
mustache (~> 1.1)
67-
open4
71+
open4 (~> 1.3)
6872
redcarpet (~> 3.4)
73+
rexml (~> 3.2)
6974
rouge (>= 2.0.6, < 4.0)
7075
sassc (~> 2.1)
7176
sqlite3 (~> 1.3)
7277
xcinvoke (~> 0.3.0)
73-
json (2.3.0)
78+
json (2.6.1)
7479
liferaft (0.0.6)
75-
minitest (5.14.0)
76-
molinillo (0.6.6)
80+
minitest (5.15.0)
81+
molinillo (0.8.0)
7782
mustache (1.1.1)
78-
nanaimo (0.2.6)
83+
nanaimo (0.3.0)
7984
nap (1.1.0)
8085
netrc (0.11.0)
8186
open4 (1.3.4)
87+
public_suffix (4.0.6)
8288
redcarpet (3.5.1)
83-
rouge (3.18.0)
84-
ruby-macho (1.4.0)
85-
sassc (2.2.1)
89+
rexml (3.2.5)
90+
rouge (3.28.0)
91+
ruby-macho (2.5.1)
92+
sassc (2.4.0)
8693
ffi (~> 1.9)
8794
sqlite3 (1.4.2)
88-
thread_safe (0.3.6)
89-
typhoeus (1.3.1)
95+
typhoeus (1.4.0)
9096
ethon (>= 0.9.0)
91-
tzinfo (1.2.7)
92-
thread_safe (~> 0.1)
97+
tzinfo (2.0.4)
98+
concurrent-ruby (~> 1.0)
9399
xcinvoke (0.3.0)
94100
liferaft (~> 0.0.6)
95-
xcodeproj (1.16.0)
101+
xcodeproj (1.21.0)
96102
CFPropertyList (>= 2.3.3, < 4.0)
97103
atomos (~> 0.1.3)
98104
claide (>= 1.0.2, < 2.0)
99105
colored2 (~> 3.1)
100-
nanaimo (~> 0.2.6)
106+
nanaimo (~> 0.3.0)
107+
rexml (~> 3.2.4)
108+
zeitwerk (2.5.4)
101109

102110
PLATFORMS
103111
ruby
@@ -107,4 +115,4 @@ DEPENDENCIES
107115
jazzy
108116

109117
BUNDLED WITH
110-
2.0.2
118+
2.3.8

0 commit comments

Comments
 (0)