Skip to content

Commit 0f779e2

Browse files
committed
Bump Wasm CI
1 parent 962d1d4 commit 0f779e2

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -95,26 +95,22 @@ jobs:
9595
run: make CONFIG=${{ matrix.config }} build-for-static-stdlib
9696

9797
wasm:
98-
name: SwiftWasm
98+
name: Wasm
9999
runs-on: ubuntu-latest
100-
strategy:
101-
matrix:
102-
toolchain:
103-
- wasm-5.9.2-RELEASE
104-
- wasm-5.10.0-RELEASE
105100
steps:
106-
- name: Cache toolchains
107-
uses: actions/cache@v3
108-
with:
109-
path: ~/Library/Developer/Toolchains
110-
key: ${{ matrix.toolchain }}
111101
- uses: actions/checkout@v4
112102
- uses: bytecodealliance/actions/wasmtime/setup@v1
113-
- uses: swiftwasm/setup-swiftwasm@v1
114-
with:
115-
swift-version: ${{ matrix.toolchain }}
116-
- name: Build tests
117-
run: swift build --triple wasm32-unknown-wasi --build-tests -Xlinker -z -Xlinker stack-size=$((1024 * 1024))
103+
- name: Install Swift and Swift SDK for WebAssembly
104+
run: |
105+
PREFIX=/opt/swift
106+
set -ex
107+
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"
108+
sudo mkdir -p $PREFIX; sudo tar -xzf /tmp/swift.tar.gz -C $PREFIX --strip-component 1
109+
$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
110+
echo "$PREFIX/usr/bin" >> $GITHUB_PATH
111+
112+
- name: Build
113+
run: swift build --swift-sdk wasm32-unknown-wasi -Xlinker -z -Xlinker stack-size=$((1024 * 1024))
118114
- name: Run tests
119115
run: wasmtime .build/debug/xctest-dynamic-overlayPackageTests.wasm
120116

0 commit comments

Comments
 (0)