Skip to content

Commit 57e8f6a

Browse files
authored
Set SWIFTLY_TOOLCHAINS_DIR in action (#172)
Fixes a bug where the cached swift toolchain was not functional.
1 parent 0ea1363 commit 57e8f6a

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

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

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,13 @@ description: Installs the Swift specified by a .swift-version file
44
runs:
55
using: "composite"
66
steps:
7-
# - name: "Cache: Swift"
8-
# id: cache-swift
9-
# uses: actions/cache@v4
10-
# with:
11-
# path: "$HOME/.local/share/swiftly"
12-
# key: swift-${{ hashFiles('.swift-version') }}
13-
147
- name: Setup Environment
158
shell: bash
169
run: |
10+
export SWIFTLY_TOOLCHAINS_DIR="$HOME/.local/share/swiftly/toolchains"
11+
echo "SWIFTLY_TOOLCHAINS_DIR=$SWIFTLY_TOOLCHAINS_DIR" >> $GITHUB_ENV
12+
echo "SWIFTLY_TOOLCHAINS_DIR=$SWIFTLY_TOOLCHAINS_DIR" >> $HOME/.bashrc
13+
1714
export SWIFTLY_HOME_DIR="$HOME/.local/share/swiftly"
1815
echo "SWIFTLY_HOME_DIR=$SWIFTLY_HOME_DIR" >> $GITHUB_ENV
1916
echo "SWIFTLY_HOME_DIR=$SWIFTLY_HOME_DIR" >> $HOME/.bashrc

0 commit comments

Comments
 (0)