Skip to content

Commit 2c357c0

Browse files
committed
Swiftly change
1 parent 5b76639 commit 2c357c0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/buildandtest.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,10 @@ jobs:
8383
sudo apt-get -y install libcurl4-openssl-dev
8484
8585
# Export Swift toolchain path for SwiftLint's SourceKit
86-
echo "LINUX_SOURCEKIT_LIB_PATH=${SWIFTLY_HOME_DIR:-$HOME/.local/share/swiftly}/toolchains/5.10/usr/lib/swift/linux" >> $GITHUB_ENV
86+
# Dynamically determine the path from the swift binary location
87+
SWIFT_BIN=$(which swift)
88+
SWIFT_TOOLCHAIN=$(dirname $(dirname "$SWIFT_BIN"))
89+
echo "LINUX_SOURCEKIT_LIB_PATH=${SWIFT_TOOLCHAIN}/lib/swift/linux" >> $GITHUB_ENV
8790
8891
- name: Lint
8992
run: |

0 commit comments

Comments
 (0)