Skip to content

Commit

Permalink
Put builds/tests in separate steps
Browse files Browse the repository at this point in the history
  • Loading branch information
dextercd authored Aug 30, 2021
1 parent 2aa2af1 commit 4c629a6
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,26 @@ jobs:
sudo apt install ./wasi.deb
curl https://get.wasmer.io -sSfL | sh
# Build
- name: Build
# Build Clang
- name: Build Clang
run: |
mkdir clang-build; cd clang-build
CXX=clang++ cmake -G Ninja ..
cmake --build .
cd ..
# Build WASM
- name: Build Clang
run: |
mkdir wasm-build; cd wasm-build
cmake --toolchain /opt/wasi-sdk/share/cmake/wasi-sdk.cmake -G Ninja -DWASI_SDK_PREFIX=/opt/wasi-sdk -DCMAKE_CXX_FLAGS="-DCATCH_CONFIG_NO_POSIX_SIGNALS=0 -fno-exceptions" ..
cmake --build . -t test_runner
# Run tests
- name: Tests
# Run Clang tests
- name: Clang Tests
run: |
clang-build/tests/test_runner
# Run WASM tests
- name: Clang Tests
run: |
~/.wasmer/bin/wasmer wasm-build/tests/test_runner

0 comments on commit 4c629a6

Please sign in to comment.