-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (56 loc) · 1.4 KB
/
emscripten.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Emscripten
on:
push:
branches:
- main
- development
pull_request:
branches:
- main
- development
jobs:
test-emscripten:
strategy:
fail-fast: false
matrix:
emscripten: [ "3.1.44", "3.1.45", "3.1.46", "3.1.47", "3.1.48", "3.1.49", "3.1.50", "3.1.51", "3.1.52", "3.1.53" ]
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
- uses: mymindstorm/setup-emsdk@v14
with:
version: ${{ matrix.emscripten }}
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.22"
- name: Recompile examples
run: |
curdir=`pwd`
for example in $(find examples -mindepth 1 -maxdepth 1 -type d)
do
cd $curdir/$example/wasm
./compile.sh
done
cd $curdir
- name: Test generation of examples
run: |
go generate ./...
- name: Run examples
run: |
curdir=`pwd`
for example in $(find examples -mindepth 1 -maxdepth 1 -type d)
do
cd $curdir/$example
go run main.go
done
cd $curdir
- name: Recompile testdata
run: |
curdir=`pwd`
cd testdata/wasm
./compile.sh
cd $curdir
- name: Test all packages
run: |
go test -timeout 30m ./... -v