Skip to content

Commit dadbdeb

Browse files
authored
Update CI for Swift 5.5 (#9)
* Update CI for Swift 5.5 * Windows Swift installer does most of the work now * Test discovery flag was still required for Swift 5.3 * Use correct Windows flow
1 parent 8088aa4 commit dadbdeb

File tree

1 file changed

+11
-25
lines changed

1 file changed

+11
-25
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
push:
44
branches:
55
- main
6-
pull_request: {}
6+
pull_request:
77

88
jobs:
99
appleos:
@@ -12,7 +12,7 @@ jobs:
1212
matrix:
1313
xcode:
1414
- latest
15-
#- latest-stable
15+
- latest-stable
1616
destination:
1717
- 'platform=macOS,arch=x86_64'
1818
#- 'platform=macOS,arch=arm64'
@@ -31,14 +31,14 @@ jobs:
3131
run: xcodebuild test -scheme StructuredAPIClient-Package -enableThreadSanitizer YES -destination '${{ matrix.destination }}'
3232

3333
linux:
34-
runs-on: ubuntu-20.04
34+
runs-on: ubuntu-latest
3535
strategy:
3636
fail-fast: false
3737
matrix:
3838
ver:
3939
- swift:5.3
40-
- swiftlang/swift:nightly-5.3
41-
- swiftlang/swift:nightly-5.4
40+
- swift:5.4
41+
- swift:5.5
4242
- swiftlang/swift:nightly-main
4343
os:
4444
- bionic
@@ -55,26 +55,12 @@ jobs:
5555
windows:
5656
runs-on: windows-latest
5757
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
7763
- name: Checkout
7864
uses: actions/checkout@v2
7965
- name: Run tests
80-
run: swift test --enable-test-discovery
66+
run: swift test

0 commit comments

Comments
 (0)