Adjustment to c api #21
Workflow file for this run
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
# 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 |