From 53d4538e61725233b79b064496242ed532d35ccd Mon Sep 17 00:00:00 2001 From: Dave Abrahams Date: Fri, 18 Aug 2023 18:57:01 -0700 Subject: [PATCH] Use a different action to setup swift on Linux. (#908) An attempt to stomp out the spurious format-check failures we've been seeing, that [die in setup-swift](https://github.com/swift-actions/setup-swift/issues/591). An alternative would be to run the format check on MacOS, but that's expected to be slower. This analysis 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. --- .github/workflows/format-check.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/format-check.yml b/.github/workflows/format-check.yml index 4ef02c9d4..0f626e490 100644 --- a/.github/workflows/format-check.yml +++ b/.github/workflows/format-check.yml @@ -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