Skip to content

add new workflow

add new workflow #8

Workflow file for this run

name: Build
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Initialize and update submodules
run: |
git submodule update --init --recursive
- name: Enable brew
run: |
echo "/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin" >> $GITHUB_PATH
- name: Install C++ dependencies
run: |
brew install boost eigen nlohmann-json msgpack-cxx doctest
- name: Configure with CMake
run: cmake -S . -B build -DPGM_IO_ENABLE_DEV_BUILD=ON
- name: Build with CMake
run: cmake --build build --config Release
- name: Run tests
run: ctest --test-dir build -V