Windows Build Test #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Windows Build Test | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| build-windows: | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| # Swift 6.0.x is incompatible with Windows 11 SDK 26100 | |
| # See: https://github.com/swiftlang/swift/issues/79745 | |
| - name: Downgrade Windows SDK for Swift 6 compatibility | |
| run: | | |
| & "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vs_installer.exe" modify ` | |
| --remove Microsoft.VisualStudio.Component.Windows11SDK.26100 ` | |
| --installPath "C:\Program Files\Microsoft Visual Studio\2022\Enterprise" ` | |
| --quiet --norestart | |
| # Note: Swift 6.2 for Windows may not be available yet | |
| # Check https://www.swift.org/download/ for latest Windows releases | |
| - name: Install Swift | |
| uses: compnerd/gha-setup-swift@main | |
| with: | |
| branch: swift-6.2-release | |
| tag: 6.2-RELEASE | |
| - name: Swift version | |
| run: swift --version | |
| - name: Build (Debug) | |
| run: swift build | |
| - name: Build (Release) | |
| run: swift build -c release |