Skip to content

Commit

Permalink
Try the Swiftylab swift setup action again.
Browse files Browse the repository at this point in the history
From the docs it looks pretty robust.
  • Loading branch information
dabrahams committed Mar 21, 2024
1 parent 07b9f2e commit d4a4a35
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,14 @@ jobs:
with:
show-progress: false

- 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 }}

- uses: compnerd/gha-setup-vsdevenv@main

- name: Set up swift (Windows)
if: ${{ matrix.os == 'windows-latest' }}
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: ${{ matrix.os == 'macos-13' && 'xcrun' || '' }} swift --version
run: swift --version && swift --version | grep -q ${{ env.swift-version }}
shell: bash

- uses: seanmiddleditch/gha-setup-ninja@v4
with:
Expand Down

0 comments on commit d4a4a35

Please sign in to comment.