From bc92c4b27f9a84bfb498cdbfdf35d5a357e9161f Mon Sep 17 00:00:00 2001 From: Stephen Celis Date: Wed, 25 Sep 2024 14:19:46 -0700 Subject: [PATCH] Fix SwiftWasm CI (#200) * Fix SwiftWasm CI The old snapshots did not support the renamed `swiftLanguageModes` Package.swift parameter. * Update ci.yml * Update ci.yml * Update ci.yml --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7de8085..df789f5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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))