Skip to content

Commit 2ce77ac

Browse files
committed
Add assume-yes to the swiftly init and use swiftly run to set PATH
1 parent 342de12 commit 2ce77ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pull_request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ jobs:
3434
- name: Prepare image
3535
run: ./scripts/prep-gh-action.sh
3636
- name: Install swiftly
37-
run: curl -O https://download.swift.org/swiftly/linux/swiftly-0.4.0-dev-x86_64.tar.gz && tar zxf swiftly-*.tar.gz && mv swiftly /usr/bin && swiftly init --skip-install && . "/root/.local/share/swiftly/env.sh" && hash -r
37+
run: curl -O https://download.swift.org/swiftly/linux/swiftly-0.4.0-dev-x86_64.tar.gz && tar zxf swiftly-*.tar.gz && mv swiftly /usr/bin && swiftly init -y --skip-install
3838
- name: Install selected swift toolchain
3939
run: swiftly install --post-install-file=post-install.sh
4040
- name: Perform swift toolchain post-installation
4141
run: chmod u+x post-install.sh && ./post-install.sh
4242
- name: Build and Test
43-
run: CC=clang swiftly run ./scripts/install-libarchive.sh && swift test
43+
run: CC=clang swiftly run ./scripts/install-libarchive.sh && swiftly run swift test
4444

4545
tests:
4646
name: Test

0 commit comments

Comments
 (0)