Skip to content

Commit

Permalink
Fix SwiftWasm CI (#200)
Browse files Browse the repository at this point in the history
* Fix SwiftWasm CI

The old snapshots did not support the renamed `swiftLanguageModes` Package.swift parameter.

* Update ci.yml

* Update ci.yml

* Update ci.yml
  • Loading branch information
stephencelis committed Sep 25, 2024
1 parent ee52bed commit bc92c4b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,9 @@ jobs:
strategy:
matrix:
include:
- toolchain: swift-DEVELOPMENT-SNAPSHOT-2024-07-08-a
swift-sdk: swift-wasm-DEVELOPMENT-SNAPSHOT-2024-07-09-a
- toolchain: swift-DEVELOPMENT-SNAPSHOT-2024-09-18-a
swift-sdk: swift-wasm-DEVELOPMENT-SNAPSHOT-2024-09-20-a
checksum: ac7318b8beee4870162292715654499127833b847af6b3d94c32e574579ea189
steps:
- uses: actions/checkout@v4
- uses: bytecodealliance/actions/wasmtime/setup@v1
Expand All @@ -84,7 +85,7 @@ jobs:
set -ex
curl -f -o /tmp/swift.tar.gz "https://download.swift.org/development/ubuntu2204/$SWIFT_TOOLCHAIN_TAG/$SWIFT_TOOLCHAIN_TAG-ubuntu22.04.tar.gz"
sudo mkdir -p $PREFIX; sudo tar -xzf /tmp/swift.tar.gz -C $PREFIX --strip-component 1
$PREFIX/usr/bin/swift experimental-sdk install "https://github.com/swiftwasm/swift/releases/download/$SWIFT_SDK_TAG/$SWIFT_SDK_TAG-wasm32-unknown-wasi.artifactbundle.zip"
$PREFIX/usr/bin/swift sdk install "https://github.com/swiftwasm/swift/releases/download/$SWIFT_SDK_TAG/$SWIFT_SDK_TAG-wasm32-unknown-wasi.artifactbundle.zip" --checksum ${{ matrix.checksum }}
echo "$PREFIX/usr/bin" >> $GITHUB_PATH
- name: Build tests
run: swift build --swift-sdk wasm32-unknown-wasi --build-tests -Xlinker -z -Xlinker stack-size=$((1024 * 1024))
Expand Down

0 comments on commit bc92c4b

Please sign in to comment.