Skip to content

Commit

Permalink
Use the Swiftylab swift setup action.
Browse files Browse the repository at this point in the history
The alternatives appear to be much worse, and this one is well-maintained.  An earlier link failure when using this appears to have been a fluke.
  • Loading branch information
dabrahams authored Mar 21, 2024
1 parent 8e89519 commit ad8a9cf
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,20 +167,14 @@ jobs:
run: ./Tools/set-hc-version.sh ${{ needs.determine-version.outputs.version }}
shell: bash

- name: 'Set up swift (*nix)'
if: ${{ matrix.os != 'windows-latest' }}
uses: swift-actions/setup-swift@v1
- name: 'Set up swift'
uses: SwiftyLab/setup-swift@latest
with:
swift-version: ${{ env.swift-version }}

- name: Set up swift (Windows)
if: ${{ matrix.os == 'windows-latest' }}
uses: compnerd/[email protected]
with:
branch: swift-${{ env.swift-version }}-release
tag: ${{ env.swift-version }}-RELEASE

- run: swift --version
- name: 'Swift version check'
run: swift --version && swift --version | grep -q ${{ env.swift-version }}
shell: bash

- name: Install LLVM
# 7z doesn't support decompressing from a stream or we'd do this all as one statement. Maybe
Expand Down

0 comments on commit ad8a9cf

Please sign in to comment.