Skip to content

Commit

Permalink
Use a different action to setup swift on Linux. (#908)
Browse files Browse the repository at this point in the history
An attempt to stomp out the spurious format-check failures we've been seeing, that [die in setup-swift](swift-actions/setup-swift#591).

An alternative would be to run the format check on MacOS, but that's expected to be slower.  This analysis <swift-actions/setup-swift#591 (comment)> explains why I think it would work.

Another alternative would be to run it on Linux in the devcontainer, where Swift is already set up.
  • Loading branch information
dabrahams authored Aug 19, 2023
1 parent ce1a114 commit 53d4538
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/format-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ jobs:
- run: git config --global core.autocrlf input

- name: Setup swift
uses: swift-actions/setup-swift@v1
uses: slashmo/install-swift@v0.4.0
with:
swift-version: "5.8"
version: 5.8

- name: Swift version
run: swift --version
Expand Down

0 comments on commit 53d4538

Please sign in to comment.