Skip to content

Commit e25bdca

Browse files
authored
Update the installation method for Swiftly in CI (#37)
1 parent 08ef81e commit e25bdca

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,18 @@ jobs:
4545
uses: actions/checkout@v4
4646
with:
4747
submodules: recursive
48+
- name: Install dependencies
49+
run: |
50+
sudo apt-get update
51+
sudo apt-get -y install libcurl4-openssl-dev
4852
- name: Install swiftly
49-
run: curl -L https://swiftlang.github.io/swiftly/swiftly-install.sh | bash -s -- -y
53+
run: |
54+
curl -O https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz && \
55+
tar zxf swiftly-$(uname -m).tar.gz && \
56+
./swiftly init --quiet-shell-followup --skip-install && \
57+
. "${SWIFTLY_HOME_DIR:-$HOME/.local/share/swiftly}/env.sh" && \
58+
hash -r
59+
echo "$HOME/.local/share/swiftly/bin" >> $GITHUB_PATH
5060
- name: Install the latest Swift toolchain
5161
run: swiftly install latest
5262
- name: Test

0 commit comments

Comments
 (0)