Skip to content

Commit ff277fb

Browse files
Fixed up GitHub Actions build failures and warnings
1 parent c7ff41a commit ff277fb

11 files changed

+34
-32
lines changed

.github/workflows/carthage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
xcode-version: ${{ matrix.xcode }}
3939

4040
- name: Checkout Code
41-
uses: actions/checkout@v2
41+
uses: actions/checkout@v4
4242

4343
- name: Setup Environment
4444
run: |
@@ -63,7 +63,7 @@ jobs:
6363
./scripts/carthage.sh update --log-path "$LOGSDIR/Build.log"
6464
6565
- name: Upload Logs
66-
uses: actions/upload-artifact@v2
66+
uses: actions/upload-artifact@v3
6767
if: always()
6868
with:
6969
name: BuildLog

.github/workflows/cocoapods.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
xcode-version: ${{ matrix.xcode }}
4040

4141
- name: Checkout Code
42-
uses: actions/checkout@v2
42+
uses: actions/checkout@v4
4343

4444
- name: Setup Cocoapods
4545
uses: maxim-lobanov/setup-cocoapods@v1
@@ -59,7 +59,7 @@ jobs:
5959
fi
6060
6161
- name: Upload Logs
62-
uses: actions/upload-artifact@v2
62+
uses: actions/upload-artifact@v3
6363
if: always()
6464
with:
6565
name: ${{ matrix.linttype }}Logs

.github/workflows/documentation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
xcode-version: ${{ matrix.xcode }}
3131

3232
- name: Checkout Code
33-
uses: actions/checkout@v2
33+
uses: actions/checkout@v4
3434

3535
- name: Setup Environment
3636
run: |
@@ -41,7 +41,7 @@ jobs:
4141
xcodebuild docbuild -project "Half.xcodeproj" -scheme "Half" -destination "generic/platform=iOS Simulator" SKIP_SWIFTLINT=YES ARCHS="x86_64" 2>&1 | tee "$LOGSDIR/build.log"
4242
4343
- name: Upload Logs
44-
uses: actions/upload-artifact@v2
44+
uses: actions/upload-artifact@v3
4545
if: always()
4646
with:
4747
name: Logs

.github/workflows/publish-cocoapods.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
xcode-version: ${{ matrix.xcode }}
2424

2525
- name: Checkout Code
26-
uses: actions/checkout@v2
26+
uses: actions/checkout@v4
2727

2828
- name: Setup CocoaPods
2929
uses: maxim-lobanov/setup-cocoapods@v1
@@ -39,7 +39,7 @@ jobs:
3939
pod trunk push Half.podspec --verbose 2>&1 | tee "$LOGSDIR/CocoaPods.log"
4040
4141
- name: Upload Logs
42-
uses: actions/upload-artifact@v2
42+
uses: actions/upload-artifact@v3
4343
if: always()
4444
with:
4545
name: Logs

.github/workflows/swift-package.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
xcode-version: ${{ matrix.xcode }}
3838

3939
- name: Checkout Code
40-
uses: actions/checkout@v2
40+
uses: actions/checkout@v4
4141

4242
- name: Setup Environment
4343
run: |
@@ -49,7 +49,7 @@ jobs:
4949
swift build --verbose | tee -a "$LOGSDIR/Build.log"
5050
5151
- name: Upload Logs
52-
uses: actions/upload-artifact@v2
52+
uses: actions/upload-artifact@v3
5353
if: always()
5454
with:
5555
name: BuildLogs-${{ runner.os }}
@@ -75,7 +75,7 @@ jobs:
7575
xcode-version: ${{ matrix.xcode }}
7676

7777
- name: Checkout Code
78-
uses: actions/checkout@v2
78+
uses: actions/checkout@v4
7979

8080
- name: Setup Environment
8181
run: |
@@ -99,7 +99,7 @@ jobs:
9999
verbose: true
100100

101101
- name: Upload Logs
102-
uses: actions/upload-artifact@v2
102+
uses: actions/upload-artifact@v3
103103
if: always()
104104
with:
105105
name: TestLogs-${{ runner.os }}

.github/workflows/swiftlint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
xcode-version: ${{ matrix.xcode }}
2929

3030
- name: Checkout Code
31-
uses: actions/checkout@v2
31+
uses: actions/checkout@v4
3232

3333
- name: Run SwiftLint
3434
run: |

.github/workflows/upload-assets.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
xcode-version: ${{ matrix.xcode }}
2323

2424
- name: Checkout Code
25-
uses: actions/checkout@v2
25+
uses: actions/checkout@v4
2626

2727
- name: Setup Environment
2828
run: |
@@ -64,7 +64,7 @@ jobs:
6464
asset_content_type: application/gzip
6565

6666
- name: Upload Logs
67-
uses: actions/upload-artifact@v2
67+
uses: actions/upload-artifact@v3
6868
if: always()
6969
with:
7070
name: XCFrameworkLogs
@@ -90,7 +90,7 @@ jobs:
9090
xcode-version: ${{ matrix.xcode }}
9191

9292
- name: Checkout Code
93-
uses: actions/checkout@v2
93+
uses: actions/checkout@v4
9494

9595
- name: Setup Environment
9696
run: |
@@ -135,7 +135,7 @@ jobs:
135135
asset_content_type: application/gzip
136136

137137
- name: Upload Logs
138-
uses: actions/upload-artifact@v2
138+
uses: actions/upload-artifact@v3
139139
if: always()
140140
with:
141141
name: DocumentationLogs

.github/workflows/xcframework.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
xcode-version: ${{ matrix.xcode }}
4040

4141
- name: Checkout Code
42-
uses: actions/checkout@v2
42+
uses: actions/checkout@v4
4343

4444
- name: Setup Environment
4545
run: |
@@ -51,7 +51,7 @@ jobs:
5151
./scripts/xcframework.sh --build-dir "${TMPDIR}" -- RUN_DOCUMENTATION_COMPILER=NO SKIP_SWIFTLINT=YES
5252
5353
- name: Upload Logs
54-
uses: actions/upload-artifact@v2
54+
uses: actions/upload-artifact@v3
5555
if: always()
5656
with:
5757
name: BuildLogs

.github/workflows/xcodebuild.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
xcode-version: ${{ matrix.xcode }}
4040

4141
- name: Checkout Code
42-
uses: actions/checkout@v2
42+
uses: actions/checkout@v4
4343

4444
- name: Setup Environment
4545
run: |
@@ -63,7 +63,7 @@ jobs:
6363
xcodebuild -project "Half.xcodeproj" -scheme "Half" -testPlan "HalfTests" -destination "platform=iOS Simulator,name=$IOS_SIM" -configuration Debug RUN_DOCUMENTATION_COMPILER=NO SKIP_SWIFTLINT=YES ONLY_ACTIVE_ARCH=YES test 2>&1 | tee "$LOGSDIR/test-ios.log"
6464
6565
- name: Upload Logs
66-
uses: actions/upload-artifact@v2
66+
uses: actions/upload-artifact@v3
6767
if: always()
6868
with:
6969
name: iOSBuildLogs
@@ -87,7 +87,7 @@ jobs:
8787
xcode-version: ${{ matrix.xcode }}
8888

8989
- name: Checkout Code
90-
uses: actions/checkout@v2
90+
uses: actions/checkout@v4
9191

9292
- name: Setup Environment
9393
run: |
@@ -102,7 +102,7 @@ jobs:
102102
xcodebuild -project "Half.xcodeproj" -scheme "Half" -testPlan "HalfTests" -destination "platform=macOS,variant=Mac Catalyst" -configuration Debug RUN_DOCUMENTATION_COMPILER=NO SKIP_SWIFTLINT=YES ONLY_ACTIVE_ARCH=YES test 2>&1 | tee "$LOGSDIR/test-maccatalyst.log"
103103
104104
- name: Upload Logs
105-
uses: actions/upload-artifact@v2
105+
uses: actions/upload-artifact@v3
106106
if: always()
107107
with:
108108
name: MacCatalystBuildLogs
@@ -126,7 +126,7 @@ jobs:
126126
xcode-version: ${{ matrix.xcode }}
127127

128128
- name: Checkout Code
129-
uses: actions/checkout@v2
129+
uses: actions/checkout@v4
130130

131131
- name: Setup Environment
132132
run: |
@@ -141,7 +141,7 @@ jobs:
141141
xcodebuild -project "Half.xcodeproj" -scheme "Half macOS" -testPlan "Half macOS Tests" -configuration Debug RUN_DOCUMENTATION_COMPILER=NO SKIP_SWIFTLINT=YES ONLY_ACTIVE_ARCH=YES test 2>&1 | tee "$LOGSDIR/test-macos.log"
142142
143143
- name: Upload Logs
144-
uses: actions/upload-artifact@v2
144+
uses: actions/upload-artifact@v3
145145
if: always()
146146
with:
147147
name: macOSBuildLogs
@@ -165,7 +165,7 @@ jobs:
165165
xcode-version: ${{ matrix.xcode }}
166166

167167
- name: Checkout Code
168-
uses: actions/checkout@v2
168+
uses: actions/checkout@v4
169169

170170
- name: Setup Environment
171171
run: |
@@ -189,7 +189,7 @@ jobs:
189189
xcodebuild -project "Half.xcodeproj" -scheme "Half tvOS" -testPlan "Half tvOS Tests" -destination "platform=tvOS Simulator,name=$TVOS_SIM" -configuration Debug RUN_DOCUMENTATION_COMPILER=NO SKIP_SWIFTLINT=YES ONLY_ACTIVE_ARCH=YES test 2>&1 | tee "$LOGSDIR/test-tvos.log"
190190
191191
- name: Upload Logs
192-
uses: actions/upload-artifact@v2
192+
uses: actions/upload-artifact@v3
193193
if: always()
194194
with:
195195
name: tvOSBuildLogs
@@ -213,7 +213,7 @@ jobs:
213213
xcode-version: ${{ matrix.xcode }}
214214

215215
- name: Checkout Code
216-
uses: actions/checkout@v2
216+
uses: actions/checkout@v4
217217

218218
- name: Setup Environment
219219
run: |
@@ -237,7 +237,7 @@ jobs:
237237
xcodebuild -project "Half.xcodeproj" -scheme "Half watchOS" -testPlan "Half watchOS Tests" -destination "platform=watchOS Simulator,name=$WATCHOS_SIM" -configuration Debug RUN_DOCUMENTATION_COMPILER=NO SKIP_SWIFTLINT=YES ONLY_ACTIVE_ARCH=YES test 2>&1 | tee "$LOGSDIR/test-watchos.log"
238238
239239
- name: Upload Logs
240-
uses: actions/upload-artifact@v2
240+
uses: actions/upload-artifact@v3
241241
if: always()
242242
with:
243243
name: watchOSBuildLogs

Half.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,6 +1202,7 @@
12021202
isa = XCBuildConfiguration;
12031203
buildSettings = {
12041204
CODE_SIGN_STYLE = Automatic;
1205+
ENABLE_USER_SCRIPT_SANDBOXING = NO;
12051206
PRODUCT_NAME = "$(TARGET_NAME)";
12061207
};
12071208
name = Debug;
@@ -1210,6 +1211,7 @@
12101211
isa = XCBuildConfiguration;
12111212
buildSettings = {
12121213
CODE_SIGN_STYLE = Automatic;
1214+
ENABLE_USER_SCRIPT_SANDBOXING = NO;
12131215
PRODUCT_NAME = "$(TARGET_NAME)";
12141216
};
12151217
name = Release;

Package.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ let package = Package(
55
name: "Half",
66

77
platforms: [
8-
.iOS("11.0"),
9-
.macOS("10.10"),
10-
.tvOS("11.0"),
8+
.iOS("12.0"),
9+
.macOS("10.13"),
10+
.tvOS("12.0"),
1111
.watchOS("4.0")
1212
],
1313

0 commit comments

Comments
 (0)