Skip to content

Add GOOSE subscriber supervision and publisher runtime (#3) #29

Add GOOSE subscriber supervision and publisher runtime (#3)

Add GOOSE subscriber supervision and publisher runtime (#3) #29

Workflow file for this run

name: C++ CI
on:
push:
branches: [main, "agent/**"]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
linux:
name: Linux / ${{ matrix.compiler }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
compiler: [gcc, clang]
steps:
- uses: actions/checkout@v4
- name: Select compiler
shell: bash
run: |
if [[ "${{ matrix.compiler }}" == "gcc" ]]; then
echo "CC=gcc" >> "$GITHUB_ENV"
echo "CXX=g++" >> "$GITHUB_ENV"
else
echo "CC=clang" >> "$GITHUB_ENV"
echo "CXX=clang++" >> "$GITHUB_ENV"
fi
- name: Configure
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DARIEC61850_WARNINGS_AS_ERRORS=ON
- name: Build
run: cmake --build build --parallel
- name: Test
run: ctest --test-dir build --output-on-failure
windows:
name: Windows / MSVC
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Configure
run: cmake -S . -B build -A x64 -DARIEC61850_WARNINGS_AS_ERRORS=ON
- name: Build
run: cmake --build build --config Release --parallel
- name: Test
run: ctest --test-dir build -C Release --output-on-failure