fix test script + additional assert + fix alignment test #60
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: build | |
on: [push] | |
jobs: | |
build-unix: | |
strategy: | |
matrix: | |
os: [ubuntu, macos] | |
compiler: [g++, clang++] | |
defines: [standard] | |
exclude: | |
- os: macos | |
compiler: g++ | |
name: ${{matrix.os}} ${{matrix.compiler}} | |
runs-on: ${{matrix.os}}-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Update submodules | |
run: git submodule update --init --recursive | |
- name: CMake Configure | |
run: mkdir build && cd build && cmake .. | |
- name: Build | |
run: cd build && cmake --build . --config RelWithDebInfo | |
- name: Run unit tests | |
run: cd build && ./smmalloc_test | |
- name: Run performance tests | |
run: cd build && ./smmalloc_perf | |
build-windows: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
arch: [Win32, x64] | |
defines: [standard] | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Update submodules | |
run: git submodule update --init --recursive | |
- name: CMake Configure | |
run: mkdir build && cd build && cmake .. | |
- name: Build | |
run: cd build && cmake --build . --config RelWithDebInfo | |
- name: Run unit tests | |
run: "build/RelWithDebInfo/smmalloc_test.exe" | |
- name: Run performance tests | |
run: "build/RelWithDebInfo/smmalloc_perf.exe" |