Skip to content

Commit

Permalink
CI: Use a working setup-swift on Windows (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
dabrahams authored May 17, 2024
1 parent 16e6096 commit ba99972
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,20 @@ jobs:
with:
xcode-version: latest-stable

- name: 'Set up swift'
- name: Set up swift (non-Windows)
if: ${{ runner.os != 'Windows' }}
uses: SwiftyLab/setup-swift@latest
with:
swift-version: ${{ env.swift-version }}

- uses: compnerd/gha-setup-vsdevenv@main
- name: Set up swift (Windows)
if: ${{ runner.os == 'Windows' }}
uses: compnerd/gha-setup-swift@v0.2.1
with:
branch: swift-${{ env.swift-version }}-release
tag: ${{ env.swift-version }}-RELEASE

- name: Verify swift version
run: swift --version && swift --version | grep -q ${{ env.swift-version }}
shell: bash
Expand Down

0 comments on commit ba99972

Please sign in to comment.