aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/emscripten.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/emscripten.yml')
-rw-r--r--.github/workflows/emscripten.yml34
1 files changed, 25 insertions, 9 deletions
diff --git a/.github/workflows/emscripten.yml b/.github/workflows/emscripten.yml
index 0b46ef2..4e22d3a 100644
--- a/.github/workflows/emscripten.yml
+++ b/.github/workflows/emscripten.yml
@@ -20,12 +20,20 @@ jobs:
20 contents: read 20 contents: read
21 steps: 21 steps:
22 - name: "Checkout repository" 22 - name: "Checkout repository"
23 uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 23 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
24 with:
25 persist-credentials: false
26
27 - name: "Install test dependencies"
28 run: |
29 sudo apt-get update
30 sudo apt-get install -y libio-socket-ssl-perl
31 perl -MIO::Socket::SSL::Utils -e 1
24 32
25 - name: "Setup emsdk" 33 - name: "Setup emsdk"
26 uses: mymindstorm/setup-emsdk@4528d102f7230f0e7b276855c01ea1159be0e984 # v16 34 uses: mymindstorm/setup-emsdk@4528d102f7230f0e7b276855c01ea1159be0e984 # v16
27 with: 35 with:
28 version: "3.1.60" 36 version: "latest"
29 37
30 - name: "Prepare repository" 38 - name: "Prepare repository"
31 run: ./autogen.sh 39 run: ./autogen.sh
@@ -34,10 +42,10 @@ jobs:
34 run: emcmake cmake -Bbuild 42 run: emcmake cmake -Bbuild
35 43
36 - name: "Build" 44 - name: "Build"
37 run: cmake --build build --config Release 45 run: cmake --build build --config Release --parallel 4
38 46
39 - name: "Test" 47 - name: "Test"
40 run: ctest --test-dir build -C Release --output-on-failure 48 run: ctest --test-dir build -C Release --parallel --output-on-failure
41 49
42 # Test ASAN with and without ASM enabled. 50 # Test ASAN with and without ASM enabled.
43 test-asan: 51 test-asan:
@@ -48,12 +56,20 @@ jobs:
48 contents: read 56 contents: read
49 steps: 57 steps:
50 - name: "Checkout repository" 58 - name: "Checkout repository"
51 uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 59 uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
60 with:
61 persist-credentials: false
62
63 - name: "Install test dependencies"
64 run: |
65 sudo apt-get update
66 sudo apt-get install -y libio-socket-ssl-perl
67 perl -MIO::Socket::SSL::Utils -e 1
52 68
53 - name: "Setup emsdk" 69 - name: "Setup emsdk"
54 uses: mymindstorm/setup-emsdk@4528d102f7230f0e7b276855c01ea1159be0e984 # v16 70 uses: mymindstorm/setup-emsdk@4528d102f7230f0e7b276855c01ea1159be0e984 # v16
55 with: 71 with:
56 version: "3.1.60" 72 version: "latest"
57 73
58 - name: "Prepare repository" 74 - name: "Prepare repository"
59 run: ./autogen.sh 75 run: ./autogen.sh
@@ -62,10 +78,10 @@ jobs:
62 run: emcmake cmake -Bbuild 78 run: emcmake cmake -Bbuild
63 env: 79 env:
64 CFLAGS: "-gsource-map -fsanitize=address" 80 CFLAGS: "-gsource-map -fsanitize=address"
65 LDFLAGS: "-fsanitize=address" 81 LDFLAGS: "-fsanitize=address -sALLOW_MEMORY_GROWTH"
66 82
67 - name: "Build" 83 - name: "Build"
68 run: cmake --build build --config Release 84 run: cmake --build build --config Release --parallel 4
69 85
70 - name: "Test" 86 - name: "Test"
71 run: ctest --test-dir build -C Release --output-on-failure 87 run: ctest --test-dir build -C Release --parallel --output-on-failure