Skip to content

Commit 515127c

Browse files
committed
wip
1 parent b1520cf commit 515127c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,22 @@ runs:
1919
- name: Install Swiftly
2020
shell: bash
2121
run: |
22-
curl -O "https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz"
23-
tar zxf "swiftly-$(uname -m).tar.gz"
22+
UNAME=$(uname -m)
23+
curl -O "https://download.swift.org/swiftly/linux/swiftly-$UNAME.tar.gz"
24+
tar zxf "swiftly-$UNAME.tar.gz"
2425
./swiftly init --skip-install --assume-yes --quiet-shell-followup
2526
2627
export SWIFTLY_HOME_DIR="$HOME/.local/share/swiftly"
2728
echo "SWIFTLY_HOME_DIR=$SWIFTLY_HOME_DIR" >> $GITHUB_ENV
29+
echo "SWIFTLY_BIN_DIR=$SWIFTLY_BIN_DIR" >> ~/.bashrc
2830
2931
export SWIFTLY_BIN_DIR="$HOME/.local/share/swiftly/bin"
3032
echo "SWIFTLY_BIN_DIR=$SWIFTLY_BIN_DIR" >> $GITHUB_ENV
33+
echo "SWIFTLY_BIN_DIR=$SWIFTLY_BIN_DIR" >> ~/.bashrc
3134
3235
export PATH="$SWIFTLY_BIN_DIR:$PATH"
3336
echo "PATH=$PATH" >> $GITHUB_ENV
37+
echo "PATH=$SWIFTLY_BIN_DIR:$PATH" >> ~/.bashrc
3438
3539
- name: Install Swift
3640
shell: bash

0 commit comments

Comments
 (0)