Skip to content

Commit 7c9c638

Browse files
committed
ci: Add ci stage that checks wasm compilation.
1 parent 3945e9c commit 7c9c638

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ jobs:
1414
test:
1515
uses: graphqlswift/ci/.github/workflows/test.yaml@main
1616
with:
17-
include_android: false
17+
include_android: false

.github/workflows/wasm.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: wasm
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
# NOTE: swift tests won't compile due to usage
12+
# of NIOPosix. But we can at least test that wasm compilation
13+
# works, to prevent future breakages.
14+
wasm:
15+
name: Test wasm compilation
16+
runs-on: ubuntu-latest
17+
container: swift:6.1.0
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
- uses: swiftwasm/setup-swiftwasm@v2
22+
with:
23+
target: "wasm32-unknown-wasip1-threads"
24+
- run: swift build --swift-sdk wasm32-unknown-wasip1-threads

0 commit comments

Comments
 (0)