Skip to content

Commit 052f5d1

Browse files
Use installed swiftly
1 parent 91ece75 commit 052f5d1

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,14 @@ jobs:
4141
steps:
4242
- name: Checkout
4343
uses: actions/checkout@v4
44-
- name: Swiftly step 1
45-
run: curl -O https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz
46-
- name: Swiftly step 2
47-
run: tar zxf swiftly-$(uname -m).tar.gz
48-
- name: Swiftly step 3
49-
run: ./swiftly init --quiet-shell-followup
50-
- name: Swiftly step 4
51-
run: . ~/.local/share/swiftly/env.sh
52-
- name: Swiftly step 5
53-
run: hash -r
44+
- name: Install swiftly
45+
run: |
46+
curl -O https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz && \
47+
tar zxf swiftly-$(uname -m).tar.gz && \
48+
./swiftly init --quiet-shell-followup && \
49+
. ~/.local/share/swiftly/env.sh && \
50+
hash -r
5451
- name: Install the latest Swift toolchain
55-
run: swiftly install latest
52+
run: ./swiftly install latest
5653
- name: Test
5754
run: swift test

0 commit comments

Comments
 (0)