Skip to content

Commit 198a8f9

Browse files
update code that installs swiftlint
1 parent 8d34cb7 commit 198a8f9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/swiftlint.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,14 @@ jobs:
1616

1717
# Step 2: Install SwiftLint
1818
- name: Install SwiftLint
19-
run: brew install swiftlint
19+
run: |
20+
sudo apt-get update
21+
sudo apt-get install -y curl git libssl-dev libcurl4-openssl-dev libz-dev
22+
curl -fsSL https://swift.org/builds/swift-5.9.1-release/ubuntu2004/swift-5.9.1-RELEASE/swift-5.9.1-RELEASE-ubuntu20.04.tar.gz | tar -xz -C /usr/local --strip-components=1
23+
git clone https://github.com/realm/SwiftLint.git
24+
cd SwiftLint
25+
swift build -c release
26+
sudo cp .build/release/swiftlint /usr/local/bin
2027
2128
# Step 3: Run SwiftLint and parse errors
2229
- name: Run SwiftLint

0 commit comments

Comments
 (0)