Skip to content

Commit 2c92ea9

Browse files
committed
ci: Try a slightly different mechanism to get the swift version, to attempt to resolve issues showing up in CI for wasm builds.
1 parent fac6c98 commit 2c92ea9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/install_wasm_sdk.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818

1919
set -euo pipefail
2020

21-
version="$(swiftc --version | head -n1)"
21+
version="$(swift --version | head -n1)"
2222
tag="$(curl -sL "https://raw.githubusercontent.com/swiftwasm/swift-sdk-index/refs/heads/main/v1/tag-by-version.json" | jq -e -r --arg v "$version" '.[$v] | .[-1]')"
2323
curl -sL "https://raw.githubusercontent.com/swiftwasm/swift-sdk-index/refs/heads/main/v1/builds/$tag.json" | jq -r '.["swift-sdks"]["wasm32-unknown-wasi"] | "swift sdk install \"\(.url)\" --checksum \"\(.checksum)\""' | sh -x

0 commit comments

Comments
 (0)