Merge pull request #2 from qnzhou/main #37
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 Debug | |
- name: Run unit tests | |
run: cd build && ./SlotMapTest --gtest_filter=-SlotMapTest.*_Slow | |
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 Release | |
- name: Run unit tests | |
run: "build/Release/SlotMapTest.exe --gtest_filter=-SlotMapTest.*_Slow" |