3
3
push :
4
4
branches :
5
5
- main
6
- pull_request : {}
6
+ pull_request :
7
7
8
8
jobs :
9
9
appleos :
12
12
matrix :
13
13
xcode :
14
14
- latest
15
- # - latest-stable
15
+ - latest-stable
16
16
destination :
17
17
- ' platform=macOS,arch=x86_64'
18
18
# - 'platform=macOS,arch=arm64'
@@ -31,14 +31,14 @@ jobs:
31
31
run : xcodebuild test -scheme StructuredAPIClient-Package -enableThreadSanitizer YES -destination '${{ matrix.destination }}'
32
32
33
33
linux :
34
- runs-on : ubuntu-20.04
34
+ runs-on : ubuntu-latest
35
35
strategy :
36
36
fail-fast : false
37
37
matrix :
38
38
ver :
39
39
- swift:5.3
40
- - swiftlang/ swift:nightly-5.3
41
- - swiftlang/ swift:nightly-5.4
40
+ - swift:5.4
41
+ - swift:5.5
42
42
- swiftlang/swift:nightly-main
43
43
os :
44
44
- bionic
@@ -55,26 +55,12 @@ jobs:
55
55
windows :
56
56
runs-on : windows-latest
57
57
steps :
58
- - name : Setup VS dev env
59
- uses : seanmiddleditch/gha-setup-vsdevenv@master
60
- - name : Install Swift snapshot
61
- run : |
62
- Install-Binary -Url "https://swift.org/builds/development/windows10/swift-DEVELOPMENT-SNAPSHOT-2021-02-18-a/swift-DEVELOPMENT-SNAPSHOT-2021-02-18-a-windows10.exe" -Name "installer.exe" -ArgumentList ("-q")
63
- - name : Set Environment Variables
64
- run : |
65
- echo "SDKROOT=C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
66
- echo "DEVELOPER_DIR=C:\Library\Developer" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
67
- - name : Adjust Paths
68
- run : |
69
- echo "C:\Library\Swift-development\bin;C:\Library\icu-67\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
70
- echo "C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
71
- - name : Install Supporting Files
72
- run : |
73
- Copy-Item "$env:SDKROOT\usr\share\ucrt.modulemap" -destination "$env:UniversalCRTSdkDir\Include\$env:UCRTVersion\ucrt\module.modulemap"
74
- Copy-Item "$env:SDKROOT\usr\share\visualc.modulemap" -destination "$env:VCToolsInstallDir\include\module.modulemap"
75
- Copy-Item "$env:SDKROOT\usr\share\visualc.apinotes" -destination "$env:VCToolsInstallDir\include\visualc.apinotes"
76
- Copy-Item "$env:SDKROOT\usr\share\winsdk.modulemap" -destination "$env:UniversalCRTSdkDir\Include\$env:UCRTVersion\um\module.modulemap"
58
+ - name : Install Swift toolchain
59
+ uses : compnerd/gha-setup-swift@main
60
+ with :
61
+ branch : swift-5.5-release
62
+ tag : 5.5-RELEASE
77
63
- name : Checkout
78
64
uses : actions/checkout@v2
79
65
- name : Run tests
80
- run : swift test --enable-test-discovery
66
+ run : swift test
0 commit comments