Skip to content

Commit 5da4a63

Browse files
committed
Including WASM compilation.
1 parent da1faa4 commit 5da4a63

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/ci-actions.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,23 @@ jobs:
5757
run: go build -v ./...
5858
- name: Testing
5959
run: go test -v -count=1 ./...
60+
wasm_job:
61+
needs: [amd64_job]
62+
runs-on: ubuntu-24.04
63+
name: Testing on WASM
64+
steps:
65+
- name: Checkout
66+
uses: actions/checkout@v5
67+
- name: Setup Go
68+
uses: actions/setup-go@v6
69+
with:
70+
go-version: '1.25'
71+
- name: Setting WASM Runtime
72+
run: echo $(go env GOROOT)/lib/wasm >> $GITHUB_PATH
73+
- name: Building
74+
run: GOOS=js GOARCH=wasm go build -v ./...
75+
- name: Testing
76+
run: GOOS=js GOARCH=wasm go test -v -count=1 ./...
6077
build_modes:
6178
needs: [amd64_job]
6279
runs-on: ubuntu-24.04
@@ -112,7 +129,7 @@ jobs:
112129
run: go test -v -count=1 ./...
113130
analyze:
114131
name: Analyze with CodeQL
115-
runs-on: ubuntu-latest
132+
runs-on: ubuntu-24.04
116133
permissions:
117134
actions: read
118135
contents: read

0 commit comments

Comments
 (0)