Skip to content

Commit

Permalink
Add WASM runner
Browse files Browse the repository at this point in the history
  • Loading branch information
jfalcou committed Dec 20, 2023
1 parent 5989fe1 commit 160c38f
Showing 1 changed file with 36 additions and 3 deletions.
39 changes: 36 additions & 3 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
run: |
cd build
ninja unit.exe -j 4
- name: Running Random Sampling Tests
- name: Running Unit Tests
run: |
cd build
ctest --output-on-failure -j 4 -E ^doc.*.exe
Expand Down Expand Up @@ -164,7 +164,7 @@ jobs:
run: |
cd build
ninja unit.exe -j 10
- name: Running Random Sampling Tests
- name: Running Unit Tests
run: |
cd build
ctest --output-on-failure -j 10 -E ^doc.*.exe
Expand Down Expand Up @@ -292,7 +292,40 @@ jobs:
run: |
cd build
ninja unit.exe -j 12
- name: Running Random Sampling Tests
- name: Running Unit Tests
run: |
cd build
ctest --output-on-failure -j 12 -E ^doc.*.exe
##################################################################################################
## WASM runner
##################################################################################################
wasm:
runs-on: ubuntu-latest
container:
image: ghcr.io/jfalcou/compilers:v7
options: -u root
strategy:
fail-fast: false
steps:
- name: Fetch current branch
uses: actions/checkout@v3
- name: Prepare EVE with WASM
run: |
mkdir build
cd build
emcmake cmake .. -G Ninja -DCMAKE_TOOLCHAIN_FILE="../cmake/toolchain/emcc.cmake"
- name: Compile Unit Tests
run: |
cd build
ninja unit.arch.*.exe -j 4
ninja unit.meta.*.exe -j 4
ninja unit.internals.*.exe -j 4
ninja unit.api.*.exe -j 4
ninja unit.memory.*.exe -j 4
ninja unit.regression.*.exe -j 4
ninja unit.*.exe -j 4
- name: Running Unit Tests
run: |
cd build
ctest --output-on-failure -j 4 -E ^doc.*.exe

0 comments on commit 160c38f

Please sign in to comment.