diff options
Diffstat (limited to '.github/workflows/emscripten.yml')
| -rw-r--r-- | .github/workflows/emscripten.yml | 28 |
1 files changed, 22 insertions, 6 deletions
diff --git a/.github/workflows/emscripten.yml b/.github/workflows/emscripten.yml index 0b46ef2..ba0eb02 100644 --- a/.github/workflows/emscripten.yml +++ b/.github/workflows/emscripten.yml | |||
| @@ -20,7 +20,15 @@ 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 |
| @@ -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,7 +56,15 @@ 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 |
| @@ -65,7 +81,7 @@ jobs: | |||
| 65 | LDFLAGS: "-fsanitize=address" | 81 | LDFLAGS: "-fsanitize=address" |
| 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 |
