Skip to content

Commit cbc2734

Browse files
authored
Update ci-windows.yml (#17)
1 parent a41f7b2 commit cbc2734

File tree

1 file changed

+5
-26
lines changed

1 file changed

+5
-26
lines changed

.github/workflows/ci-windows.yml

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,35 +10,14 @@ on:
1010
jobs:
1111
windows-test-build-release:
1212
runs-on: windows-latest
13-
strategy:
14-
matrix:
15-
include:
16-
- tag: 5.7-RELEASE
17-
branch: swift-5.7-release
1813
steps:
19-
- uses: actions/checkout@v3.5.2
14+
- uses: compnerd/gha-setup-swift@main
2015
with:
21-
fetch-depth: 1
16+
branch: swift-5.7-release
17+
tag: 5.7-RELEASE
2218

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
4221

4322
- name: Build Release
4423
run: swift build -c release --verbose

0 commit comments

Comments
 (0)