feat add test
This commit is contained in:
parent
9fe332c89a
commit
6431a560a9
@ -72,7 +72,7 @@ jobs:
|
||||
- name: configure
|
||||
run: |
|
||||
mkdir build && cd build
|
||||
cmake .. -DULIB_BUILD_TESTS=ON -DCMAKE_TOOLCHAIN_FILE=../toolchains/mips64el-linux-gnuabi64.toolchain.cmake -DCMAKE_CROSSCOMPILING_EMULATOR="qemu-mips64el;-L;/usr/mips64el-linux-gnuabi64"
|
||||
cmake .. -DSLED_BUILD_TESTS=ON -DCMAKE_TOOLCHAIN_FILE=../toolchains/mips64el-linux-gnuabi64.toolchain.cmake -DCMAKE_CROSSCOMPILING_EMULATOR="qemu-mips64el;-L;/usr/mips64el-linux-gnuabi64"
|
||||
- name: build
|
||||
run: cmake --build build --target all -j `nproc`
|
||||
- name: test
|
||||
|
@ -40,7 +40,14 @@ jobs:
|
||||
- name: configure
|
||||
run: |
|
||||
mkdir build && cd build
|
||||
cmake .. -DCMAKE_BUILD_TYPE=${{matrix.build_type}}
|
||||
cmake .. -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DSLED_BUILD_TESTS=ON -DSLED_BUILD_BENCHMARK=ON
|
||||
- name: build
|
||||
run: |
|
||||
cmake --build build -j `nproc`
|
||||
- name: test
|
||||
run: |
|
||||
cd build
|
||||
ctest --output-on-failure -j`nproc`
|
||||
- name: benchmark
|
||||
run: |
|
||||
./build/sled_benchmark
|
||||
|
Loading…
Reference in New Issue
Block a user