diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 59eca07..7d654f7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -46,27 +46,17 @@ jobs: wasm: name: Wasm runs-on: ubuntu-latest - strategy: - matrix: - include: - - toolchain: swift-DEVELOPMENT-SNAPSHOT-2024-07-08-a - swift-sdk: swift-wasm-DEVELOPMENT-SNAPSHOT-2024-07-09-a steps: - uses: actions/checkout@v4 - uses: bytecodealliance/actions/wasmtime/setup@v1 - - name: Install Swift and Swift SFK for WebAssembly + - name: Install Swift and Swift SDK for WebAssembly run: | PREFIX=/opt/swift - SWIFT_TOOLCHAIN_TAG="${{ matrix.toolchain }}" - SWIFT_SDK_TAG="${{ matrix.swift-sdk }}" 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" + curl -f -o /tmp/swift.tar.gz "https://download.swift.org/swift-6.0.2-release/ubuntu2204/swift-6.0.2-RELEASE/swift-6.0.2-RELEASE-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-wasm-6.0.2-RELEASE/swift-wasm-6.0.2-RELEASE-wasm32-unknown-wasi.artifactbundle.zip --checksum 6ffedb055cb9956395d9f435d03d53ebe9f6a8d45106b979d1b7f53358e1dcb4 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)) - - name: Run tests - run: wasmtime --dir . .build/debug/swift-clocksPackageTests.wasm - + - name: Build + run: swift build --swift-sdk wasm32-unknown-wasi -Xlinker -z -Xlinker stack-size=$((1024 * 1024))