Skip to content

Commit 4c82dc4

Browse files
committed
Swiftly dirs, again.
1 parent 64781ee commit 4c82dc4

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/swift.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,19 @@ jobs:
2727
if: ${{ startsWith( matrix.os, 'macos' ) }}
2828
shell: bash
2929
run: |
30-
mkdir $SWIFTLY_HOME_DIR
31-
cd $SWIFTLY_HOME_DIR
30+
mkdir -p $SWIFTLY_HOME_DIR/install
31+
cd $SWIFTLY_HOME_DIR/install
3232
curl -O $SWIFTLY_DL/darwin/swiftly.pkg
3333
installer -pkg swiftly.pkg -target CurrentUserHomeDirectory
34+
ln $HOME/usr/local/bin/swiftly swiftly
3435
3536
- name: Install/Pre/Linux
3637
if: ${{ startsWith( matrix.os, 'ubuntu' ) }}
3738
shell: bash
3839
run: |
3940
sudo apt-get -y install libcurl4-openssl-dev
40-
mkdir $SWIFTLY_HOME_DIR
41-
cd $SWIFTLY_HOME_DIR
41+
mkdir -p $SWIFTLY_HOME_DIR/install
42+
cd $SWIFTLY_HOME_DIR/install
4243
curl -O $SWIFTLY_DL/linux/swiftly-$(uname -m).tar.gz
4344
tar vzxf swiftly-$(uname -m).tar.gz
4445
@@ -47,8 +48,9 @@ jobs:
4748
shell: bash
4849
run: |
4950
cd $SWIFTLY_HOME_DIR
50-
$SWIFTLY_HOME_DIR/swiftly $SWIFTLY_INIT
51-
$SWIFTLY_HOME_DIR/swiftly $SWIFTLY_INSTALL ${{ matrix.swift-version }}
51+
ls -laF ./install
52+
$SWIFTLY_HOME_DIR/install/swiftly $SWIFTLY_INIT
53+
$SWIFTLY_HOME_DIR/bin/swiftly $SWIFTLY_INSTALL ${{ matrix.swift-version }}
5254
if [ -f $SWIFTLY_HOME_DIR/post-install.sh ]; then
5355
. $SWIFTLY_HOME_DIR/post-install.sh
5456
fi

0 commit comments

Comments
 (0)