Skip to content

Commit 7a1acf8

Browse files
committed
Update GitHub CI for WASM
1 parent 6d99cb1 commit 7a1acf8

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/swift-wasm.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Swift WASM
2+
on: [push]
3+
jobs:
4+
build-wasm:
5+
name: Build for WASM
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
swift: ["6.0.3"]
10+
config: ["debug", "release"]
11+
container: swift:${{ matrix.swift }}
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
- name: Swift Version
16+
run: swift --version
17+
- uses: swiftwasm/setup-swiftwasm@v2
18+
- name: Build
19+
run: swift build -c ${{ matrix.config }} --swift-sdk wasm32-unknown-wasi

0 commit comments

Comments
 (0)