Skip to content

Commit e35b1bf

Browse files
RISCfutureclaude
andcommitted
Switch from swift-format to swift format in CI
Use the built-in swift format subcommand from the Swift toolchain instead of cloning and building swift-format from source. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 6badc67 commit e35b1bf

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,9 @@ jobs:
4242
image: swift:latest
4343
steps:
4444
- uses: actions/checkout@v4
45-
- name: Install dependencies
46-
run: apt-get update && apt-get install -y wget
4745
- name: Download .swift-format config
48-
run: wget -O .swift-format https://gist.githubusercontent.com/RISCfuture/e0c21afb7bd80a88d128a42bf40d2ecd/raw/.swift-format
49-
- name: Install swift-format
5046
run: |
51-
git clone https://github.com/swiftlang/swift-format.git
52-
cd swift-format
53-
swift build -c release
54-
cp .build/release/swift-format /usr/local/bin/
47+
apt-get update && apt-get install -y wget
48+
wget -O .swift-format https://gist.githubusercontent.com/RISCfuture/e0c21afb7bd80a88d128a42bf40d2ecd/raw/.swift-format
5549
- name: Run swift-format lint
56-
run: swift-format lint -r .
50+
run: swift format lint -r .

0 commit comments

Comments
 (0)