Skip to content

Commit 0572ab4

Browse files
committed
wip
1 parent 522958b commit 0572ab4

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/actions/install-swift/action.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ runs:
1919
- name: Install Swiftly
2020
shell: bash
2121
run: |
22+
set -ex
2223
UNAME=$(uname -m)
2324
curl -O "https://download.swift.org/swiftly/linux/swiftly-$UNAME.tar.gz"
2425
tar zxf "swiftly-$UNAME.tar.gz"
@@ -35,15 +36,19 @@ runs:
3536
export PATH="$SWIFTLY_BIN_DIR:$PATH"
3637
echo "PATH=$PATH" >> $GITHUB_ENV
3738
echo "PATH=$SWIFTLY_BIN_DIR:$PATH" >> ~/.bashrc
39+
echo $HOME
3840
3941
- name: Install Swift
4042
shell: bash
4143
run: |
4244
set -ex
43-
echo $SHELL
44-
echo $PATH
45-
cat ~/.profile
46-
cat ~/.bashrc
47-
cat ~/.bash_profile
45+
echo SHELL=$SHELL
46+
echo PATH=$PATH
47+
echo HOME=$HOME
48+
49+
cat $HOME/.bashrc || true
50+
cat $HOME/.profile || true
51+
cat $HOME/.bash_profile || true
52+
4853
swiftly install
4954
swift --version

0 commit comments

Comments
 (0)