Merge pull request #8 from Sinan-Karakaya/fix-build-windows #17
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 and test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: | | |
mkdir build | |
cd build | |
cmake .. -DCMAKE_BUILD_TYPE=Release | |
make -j 2 | |
# TODO(fix): For some reason, github Actions cant find the header catch2.hpp | |
- name: Test | |
run: | | |
sudo apt install catch2 -y | |
cd build | |
cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=On | |
make -j 2 | |
cd tests | |
./tests |