Skip to content

Commit 2f57cab

Browse files
author
Chaitanya Kumar
committed
refactor: set PATH globally
1 parent 0e0f453 commit 2f57cab

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,20 +69,15 @@ jobs:
6969
~/.swiftly/bin/swiftly init --quiet-shell-followup && \
7070
. ~/.swiftly/env.sh && \
7171
hash -r
72+
echo "${HOME}/.swiftly/bin" >> $GITHUB_PATH
7273
- name: Install Swift ${{ matrix.swift }}
73-
run: ~/.swiftly/bin/swiftly install --use ${{ matrix.swift }}
74+
run: swiftly install --use ${{ matrix.swift }}
7475
- name: Check Swift Installation
75-
run: |
76-
alias swift=~/.swiftly/bin/swift
77-
swift --version
76+
run: swift --version
7877
- name: Run compiletime crash tests
7978
env:
8079
SWIFT_VERSION: ${{ matrix.swift }}
81-
run: |
82-
export PATH=$HOME/.swiftly/bin:$PATH
83-
which swift
84-
swift --version
85-
cd CompiletimeCrashTests && ./run-compiletime-crash-tests.sh
80+
run: cd CompiletimeCrashTests && ./run-compiletime-crash-tests.sh
8681
- name: Upload to Influx
8782
if: ${{ github.event_name == 'push' }}
8883
env:

0 commit comments

Comments
 (0)