File tree Expand file tree Collapse file tree 1 file changed +5
-26
lines changed Expand file tree Collapse file tree 1 file changed +5
-26
lines changed Original file line number Diff line number Diff line change 10
10
jobs :
11
11
windows-test-build-release :
12
12
runs-on : windows-latest
13
- strategy :
14
- matrix :
15
- include :
16
- - tag : 5.7-RELEASE
17
- branch : swift-5.7-release
18
13
steps :
19
- - uses : actions/checkout@v3.5.2
14
+ - uses : compnerd/gha-setup-swift@main
20
15
with :
21
- fetch-depth : 1
16
+ branch : swift-5.7-release
17
+ tag : 5.7-RELEASE
22
18
23
- - uses : seanmiddleditch/gha-setup-vsdevenv@v4
24
-
25
- - name : Install Swift ${{ matrix.tag }}
26
- run : |
27
- Install-Binary -Url "https://swift.org/builds/${{ matrix.branch }}/windows10/swift-${{ matrix.tag }}/swift-${{ matrix.tag }}-windows10.exe" -Name "installer.exe" -ArgumentList ("-q")
28
- - name : Set Environment Variables
29
- run : |
30
- echo "SDKROOT=C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
31
- echo "DEVELOPER_DIR=C:\Library\Developer" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
32
- - name : Adjust Paths
33
- run : |
34
- echo "C:\Library\Swift-development\bin;C:\Library\icu-67\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
35
- echo "C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
36
- - name : Install Supporting Files
37
- run : |
38
- Copy-Item "$env:SDKROOT\usr\share\ucrt.modulemap" -destination "$env:UniversalCRTSdkDir\Include\$env:UCRTVersion\ucrt\module.modulemap"
39
- Copy-Item "$env:SDKROOT\usr\share\visualc.modulemap" -destination "$env:VCToolsInstallDir\include\module.modulemap"
40
- Copy-Item "$env:SDKROOT\usr\share\visualc.apinotes" -destination "$env:VCToolsInstallDir\include\visualc.apinotes"
41
- Copy-Item "$env:SDKROOT\usr\share\winsdk.modulemap" -destination "$env:UniversalCRTSdkDir\Include\$env:UCRTVersion\um\module.modulemap"
19
+ - name : Checkout
20
+ uses : actions/checkout@v3
42
21
43
22
- name : Build Release
44
23
run : swift build -c release --verbose
You can’t perform that action at this time.
0 commit comments