tests : adding first tests + sanitizer builds

This commit is contained in:
Georgi Gerganov
2021-01-18 21:32:27 +02:00
parent 201fdf0cbe
commit 86b3615012
6 changed files with 124 additions and 15 deletions

View File

@@ -26,14 +26,43 @@ jobs:
run: cmake . -DCMAKE_BUILD_TYPE=${{ matrix.build }}
- name: Build
run: make
run: |
make
ctest
ubuntu-18_04-gcc-sanitized:
runs-on: ubuntu-18.04
strategy:
matrix:
sanitizer: [ADDRESS, THREAD, UNDEFINED]
steps:
- name: Clone
uses: actions/checkout@v1
with:
submodules: recursive
- name: Dependencies
run: |
sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install cmake;
- name: Configure
run: cmake . -DCMAKE_BUILD_TYPE=Debug -DGGWAVE_BUILD_EXAMPLES=OFF -DGGWAVE_SANITIZE_${{ matrix.sanitizer }}
- name: Build
run: |
make
ctest
ubuntu-18_04-clang:
runs-on: ubuntu-18.04
strategy:
matrix:
build: [Debug, Release]
build: [Release]
steps:
- name: Clone
@@ -52,14 +81,16 @@ jobs:
run: cmake . -DCMAKE_BUILD_TYPE=${{ matrix.build }} -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang
- name: Build
run: make
run: |
make
ctest
macOS-10_14-clang:
runs-on: macOS-10.14
strategy:
matrix:
build: [Debug, Release]
build: [Release]
steps:
- name: Clone
@@ -76,14 +107,16 @@ jobs:
run: cmake . -DCMAKE_BUILD_TYPE=${{ matrix.build }}
- name: Build
run: make
run: |
make
ctest
Emscripten:
runs-on: ubuntu-18.04
strategy:
matrix:
build: [Debug, Release]
build: [Release]
steps:
- name: Clone
@@ -108,4 +141,4 @@ jobs:
source ./emsdk_env.sh
popd
emcmake cmake . -DCMAKE_BUILD_TYPE=${{ matrix.build }}
make
make && ctest