Skip to content

Commit 5361d2f

Browse files
Bulk updates
- Updated project to support Xcode 15 - Dropped support for Swift versions earlier than 5 - Cleaned up scripts and other files - Removed Codacy support - Updated workflows to use latest macOS image and Xcode 15
1 parent 9f95ddc commit 5361d2f

30 files changed

+199
-6302
lines changed

.github/workflows/carthage.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,21 @@ on:
2121

2222
jobs:
2323
build:
24+
strategy:
25+
matrix:
26+
os: [macOS-13]
27+
xcode: ['15.0']
28+
2429
name: Build
25-
runs-on: macOS-11
30+
runs-on: ${{ matrix.os }}
2631
env:
2732
LOGSDIR: /tmp/.half.carthage/Logs
2833

2934
steps:
35+
- uses: maxim-lobanov/setup-xcode@v1
36+
with:
37+
xcode-version: ${{ matrix.xcode }}
38+
3039
- name: Checkout Code
3140
uses: actions/checkout@v2
3241

.github/workflows/cocoapods.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,20 @@ jobs:
2323
strategy:
2424
matrix:
2525
linttype: [Dynamic, Static]
26+
os: [macOS-13]
27+
xcode: ['15.0']
2628

2729
name: Lint
28-
runs-on: macOS-11
30+
runs-on: ${{ matrix.os }}
2931
env:
3032
LOGSDIR: /tmp/.half.cocoapods/Logs/${{ matrix.linttype }}
3133
LINT_TYPE: ${{ matrix.linttype }}
3234

3335
steps:
36+
- uses: maxim-lobanov/setup-xcode@v1
37+
with:
38+
xcode-version: ${{ matrix.xcode }}
39+
3440
- name: Checkout Code
3541
uses: actions/checkout@v2
3642

.github/workflows/documentation.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,21 @@ on:
1313

1414
jobs:
1515
build:
16+
strategy:
17+
matrix:
18+
os: [macOS-13]
19+
xcode: ['15.0']
20+
1621
name: Build Documentation
17-
runs-on: macOS-11
22+
runs-on: ${{ matrix.os }}
1823
env:
1924
LOGSDIR: /tmp/.half.documentation/Logs
2025

2126
steps:
27+
- uses: maxim-lobanov/setup-xcode@v1
28+
with:
29+
xcode-version: ${{ matrix.xcode }}
30+
2231
- name: Checkout Code
2332
uses: actions/checkout@v2
2433

.github/workflows/publish-cocoapods.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,22 @@ on:
55

66
jobs:
77
publish:
8+
strategy:
9+
matrix:
10+
os: [macOS-13]
11+
xcode: ['15.0']
12+
813
name: Publish CocoaPods
9-
runs-on: macOS-11
14+
runs-on: ${{ matrix.os }}
1015
env:
1116
LOGSDIR: /tmp/.half.cocoapods/Logs
1217
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
1318

1419
steps:
20+
- uses: maxim-lobanov/setup-xcode@v1
21+
with:
22+
xcode-version: ${{ matrix.xcode }}
23+
1524
- name: Checkout Code
1625
uses: actions/checkout@v2
1726

.github/workflows/swift-package.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,19 @@ jobs:
2121
build:
2222
strategy:
2323
matrix:
24-
os: [macOS-11, ubuntu-latest]
24+
os: [macOS-13, ubuntu-latest]
25+
xcode: ['15.0']
2526

2627
name: Build
2728
runs-on: ${{ matrix.os }}
2829
env:
2930
LOGSDIR: /tmp/.half.swiftpm/Logs/Build
3031

3132
steps:
33+
- uses: maxim-lobanov/setup-xcode@v1
34+
with:
35+
xcode-version: ${{ matrix.xcode }}
36+
3237
- name: Checkout Code
3338
uses: actions/checkout@v2
3439

@@ -51,7 +56,8 @@ jobs:
5156
test:
5257
strategy:
5358
matrix:
54-
os: [macOS-11, ubuntu-latest]
59+
os: [macOS-13, ubuntu-latest]
60+
xcode: ['15.0']
5561

5662
name: Test
5763
runs-on: ${{ matrix.os }}
@@ -60,6 +66,10 @@ jobs:
6066
LOGSDIR: /tmp/.half.swiftpm/Logs/Test
6167

6268
steps:
69+
- uses: maxim-lobanov/setup-xcode@v1
70+
with:
71+
xcode-version: ${{ matrix.xcode }}
72+
6373
- name: Checkout Code
6474
uses: actions/checkout@v2
6575

.github/workflows/swiftlint.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,19 @@ on:
1313

1414
jobs:
1515
build:
16+
strategy:
17+
matrix:
18+
os: [macOS-13]
19+
xcode: ['15.0']
20+
1621
name: Run SwiftLint
17-
runs-on: macOS-11
22+
runs-on: ${{ matrix.os }}
1823

1924
steps:
25+
- uses: maxim-lobanov/setup-xcode@v1
26+
with:
27+
xcode-version: ${{ matrix.xcode }}
28+
2029
- name: Checkout Code
2130
uses: actions/checkout@v2
2231

.github/workflows/upload-assets.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,21 @@ on:
55

66
jobs:
77
xcframework:
8+
strategy:
9+
matrix:
10+
os: [macOS-13]
11+
xcode: ['15.0']
12+
813
name: Upload XCFramework Assets
9-
runs-on: macOS-11
14+
runs-on: ${{ matrix.os }}
1015
env:
1116
TMPDIR: /tmp/.half.assets-xcframework.build
1217

1318
steps:
19+
- uses: maxim-lobanov/setup-xcode@v1
20+
with:
21+
xcode-version: ${{ matrix.xcode }}
22+
1423
- name: Checkout Code
1524
uses: actions/checkout@v2
1625

@@ -63,12 +72,21 @@ jobs:
6372

6473

6574
documentation:
75+
strategy:
76+
matrix:
77+
os: [macOS-13]
78+
xcode: ['15.0']
79+
6680
name: Upload Documentation Assets
67-
runs-on: macOS-11
81+
runs-on: ${{ matrix.os }}
6882
env:
6983
TMPDIR: /tmp/.half.assets-documentation.build
7084

7185
steps:
86+
- uses: maxim-lobanov/setup-xcode@v1
87+
with:
88+
xcode-version: ${{ matrix.xcode }}
89+
7290
- name: Checkout Code
7391
uses: actions/checkout@v2
7492

.github/workflows/xcframework.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,21 @@ on:
2222

2323
jobs:
2424
build:
25+
strategy:
26+
matrix:
27+
os: [macOS-13]
28+
xcode: ['15.0']
29+
2530
name: Build
26-
runs-on: macOS-11
31+
runs-on: ${{ matrix.os }}
2732
env:
2833
TMPDIR: /tmp/.half.xcframework.build
2934

3035
steps:
36+
- uses: maxim-lobanov/setup-xcode@v1
37+
with:
38+
xcode-version: ${{ matrix.xcode }}
39+
3140
- name: Checkout Code
3241
uses: actions/checkout@v2
3342

.github/workflows/xcodebuild.yml

Lines changed: 50 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,21 @@ on:
2222

2323
jobs:
2424
ios:
25+
strategy:
26+
matrix:
27+
os: [macOS-13]
28+
xcode: ['15.0']
29+
2530
name: iOS
26-
runs-on: macOS-11
31+
runs-on: ${{ matrix.os }}
2732
env:
2833
LOGSDIR: /tmp/.half.xcodebuild/iOS/Logs
2934

3035
steps:
36+
- uses: maxim-lobanov/setup-xcode@v1
37+
with:
38+
xcode-version: ${{ matrix.xcode }}
39+
3140
- name: Checkout Code
3241
uses: actions/checkout@v2
3342

@@ -60,12 +69,21 @@ jobs:
6069
path: ${{ env.LOGSDIR }}/*.log
6170

6271
maccatalyst:
72+
strategy:
73+
matrix:
74+
os: [macOS-13]
75+
xcode: ['15.0']
76+
6377
name: Mac Catalyst
64-
runs-on: macOS-11
78+
runs-on: ${{ matrix.os }}
6579
env:
6680
LOGSDIR: /tmp/.half.xcodebuild/macCatalyst/Logs
6781

6882
steps:
83+
- uses: maxim-lobanov/setup-xcode@v1
84+
with:
85+
xcode-version: ${{ matrix.xcode }}
86+
6987
- name: Checkout Code
7088
uses: actions/checkout@v2
7189

@@ -89,12 +107,21 @@ jobs:
89107
path: ${{ env.LOGSDIR }}/*.log
90108

91109
macos:
110+
strategy:
111+
matrix:
112+
os: [macOS-13]
113+
xcode: ['15.0']
114+
92115
name: macOS
93-
runs-on: macOS-11
116+
runs-on: ${{ matrix.os }}
94117
env:
95118
LOGSDIR: /tmp/.half.xcodebuild/macOS/Logs
96119

97120
steps:
121+
- uses: maxim-lobanov/setup-xcode@v1
122+
with:
123+
xcode-version: ${{ matrix.xcode }}
124+
98125
- name: Checkout Code
99126
uses: actions/checkout@v2
100127

@@ -118,12 +145,21 @@ jobs:
118145
path: ${{ env.LOGSDIR }}/*.log
119146

120147
tvos:
148+
strategy:
149+
matrix:
150+
os: [macOS-13]
151+
xcode: ['15.0']
152+
121153
name: tvOS
122-
runs-on: macOS-11
154+
runs-on: ${{ matrix.os }}
123155
env:
124156
LOGSDIR: /tmp/.half.xcodebuild/tvOS/Logs
125157

126158
steps:
159+
- uses: maxim-lobanov/setup-xcode@v1
160+
with:
161+
xcode-version: ${{ matrix.xcode }}
162+
127163
- name: Checkout Code
128164
uses: actions/checkout@v2
129165

@@ -156,12 +192,21 @@ jobs:
156192
path: ${{ env.LOGSDIR }}/*.log
157193

158194
watchos:
195+
strategy:
196+
matrix:
197+
os: [macOS-13]
198+
xcode: ['15.0']
199+
159200
name: watchOS
160-
runs-on: macOS-11
201+
runs-on: ${{ matrix.os }}
161202
env:
162203
LOGSDIR: /tmp/.half.xcodebuild/watchOS/Logs
163204

164205
steps:
206+
- uses: maxim-lobanov/setup-xcode@v1
207+
with:
208+
xcode-version: ${{ matrix.xcode }}
209+
165210
- name: Checkout Code
166211
uses: actions/checkout@v2
167212

Half.podspec

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "Half"
4-
s.version = "1.3.2"
4+
s.version = "1.4.0"
55
s.summary = "Swift Half-Precision Floating Point"
66
s.description = <<-DESC
77
A lightweight framework containing a Swift implementation for a half-precision floating point type for iOS, macOS, tvOS, and watchOS.
@@ -12,23 +12,13 @@ Pod::Spec.new do |s|
1212
s.author = { "Joe Newton" => "somerandomiosdev@gmail.com" }
1313
s.source = { :git => "https://github.com/SomeRandomiOSDev/Half.git", :tag => s.version.to_s }
1414

15-
s.ios.deployment_target = '11.0'
16-
s.macos.deployment_target = '10.10'
17-
s.tvos.deployment_target = '11.0'
15+
s.ios.deployment_target = '12.0'
16+
s.macos.deployment_target = '10.13'
17+
s.tvos.deployment_target = '12.0'
1818
s.watchos.deployment_target = '4.0'
1919

2020
s.source_files = 'Sources/**/*.{swift,h,c}'
21-
s.swift_versions = ['4.0', '4.2', '5.0']
21+
s.swift_versions = ['5.0']
2222
s.cocoapods_version = '>= 1.7.3'
2323

24-
s.test_spec 'Tests' do |ts|
25-
ts.ios.deployment_target = '11.0'
26-
ts.macos.deployment_target = '10.10'
27-
ts.tvos.deployment_target = '11.0'
28-
ts.watchos.deployment_target = '4.0'
29-
30-
ts.source_files = 'Tests/CHalfTests/*Tests.swift',
31-
'Tests/HalfTests/*Tests.swift'
32-
end
33-
3424
end

0 commit comments

Comments
 (0)