No minmax fix #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: CMake Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
with: | |
submodules: 'recursive' | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y cmake build-essential zlib1g-dev | |
- name: Checkout GTest | |
run: | | |
git clone https://github.com/google/googletest.git | |
cd googletest | |
git checkout release-1.11.0 | |
mkdir build | |
cd build | |
cmake .. | |
make | |
sudo make install | |
- name: Create build directory | |
run: mkdir -p build | |
- name: Configure CMake | |
run: cmake -B build -DBUILD_TESTS=ON | |
- name: Build project | |
run: cmake --build build |