Fixup for commit bf9e678a80307122042af57a69d1312d517516b1: Linux dependencies #24
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: 2023 SAP SE | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
# | |
# This file is part of FEDEM - https://openfedem.org | |
name: Unit testing | |
on: | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build-and-test: | |
name: Build and execute unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install googletest | |
uses: Bacondish2023/setup-googletest@v1 | |
- name: Silence some advice and hint | |
run: | | |
git config --global advice.detachedHead false | |
git config --global init.defaultBranch main | |
- name: Check out source repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Configure main build | |
run: > | |
GTEST_ROOT=/usr/local | |
cmake -B ./build -DCMAKE_BUILD_TYPE=Release -DUSE_FORTRAN=ON | |
- name: Build binaries and execute tests | |
run: cmake --build ./build --target check |