Skip to content

Adjustment to c api #25

Adjustment to c api

Adjustment to c api #25

Workflow file for this run

# SPDX-FileCopyrightText: Contributors to the Power Grid Model project <[email protected]>
#
# SPDX-License-Identifier: MPL-2.0
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