Skip to content

Commit b03507a

Browse files
committed
Update the path for subsequent worklow steps
1 parent 2ce77ac commit b03507a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/pull_request.yml

Lines changed: 3 additions & 3 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 -y --skip-install
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 && . /root/.local/share/swiftly/env.sh && echo "PATH=$PATH" >> "$GITHUB_ENV"
3838
- name: Install selected swift toolchain
39-
run: swiftly install --post-install-file=post-install.sh
39+
run: swiftly install --post-install-file=post-install.sh && swift --version
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 && swiftly run swift test
43+
run: CC=clang swiftly run ./scripts/install-libarchive.sh && swift test
4444

4545
tests:
4646
name: Test

0 commit comments

Comments
 (0)