Skip to content

Merge pull request #8 from Sinan-Karakaya/fix-build-windows #17

Merge pull request #8 from Sinan-Karakaya/fix-build-windows

Merge pull request #8 from Sinan-Karakaya/fix-build-windows #17

Workflow file for this run

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