Skip to content

Commit fbdfd4f

Browse files
feat: build with GOOS=js too
1 parent 7732ad2 commit fbdfd4f

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,29 @@ jobs:
6262
go run ./examples/adapters
6363
go run ./examples/compute
6464
go run ./examples/capture
65+
66+
go build ./examples/triangle
67+
go build ./examples/boids
68+
go build ./examples/cube
6569
6670
shell: bash
71+
72+
73+
test-build-js:
74+
runs-on: ubuntu-latest
75+
env:
76+
GOOS: js
77+
GOARCH: wasm
78+
79+
steps:
80+
- name: Checkout
81+
uses: actions/checkout@v4
82+
83+
- name: Setup Go
84+
uses: actions/setup-go@v5
85+
with:
86+
go-version: "stable"
87+
88+
- name: Build a wasm file
89+
run: |
90+
go build ./examples/triangle

0 commit comments

Comments
 (0)