Skip to content

Commit bc220f5

Browse files
authored
Add WASI job to main.yml workflow
1 parent 112a223 commit bc220f5

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ jobs:
126126
wasi-swift-sdk-checksum: "b64dfad9e1c9ccdf06f35cf9b1a00317e000df0c0de0b3eb9f49d6db0fcba4d9"
127127
test-args: "-Xswiftc -DWASMKIT_CI_TOOLCHAIN_NIGHTLY"
128128

129-
runs-on: ubuntu-22.04
129+
runs-on: ubuntu-24.04
130130
name: "build-linux (${{ matrix.swift }})"
131131

132132
steps:
@@ -240,7 +240,7 @@ jobs:
240240
run: swift test
241241

242242
build-cmake:
243-
runs-on: ubuntu-22.04
243+
runs-on: ubuntu-24.04
244244
container:
245245
image: swift:6.2-noble
246246
steps:
@@ -254,3 +254,16 @@ jobs:
254254
- run: cmake -G Ninja -B ./build
255255
- run: cmake --build ./build
256256
- run: ./build/bin/wasmkit-cli --version
257+
258+
build-wasi:
259+
runs-on: ubuntu-24.04
260+
container:
261+
image: swift:6.2-noble
262+
steps:
263+
- uses: actions/checkout@v4
264+
- name: Install jq
265+
run: apt-get update && apt-get install -y jq
266+
- name: Install Swift SDK
267+
run: swift sdk install https://download.swift.org/swift-6.2-branch/wasm-sdk/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-10-09-a/swift-6.2-DEVELOPMENT-SNAPSHOT-2025-10-09-a_wasm.artifactbundle.tar.gz --checksum 048667dbddd50bfb797d09d194bd0c1c53b251a121f4b870402154b0adab556e
268+
- run: swift build --swift-sdk "$(swiftc -print-target-info | jq -r '.swiftCompilerTag')_wasm"
269+

0 commit comments

Comments
 (0)