Skip to content

Use ubuntu-22.04 image for linux build jobs #8

Use ubuntu-22.04 image for linux build jobs

Use ubuntu-22.04 image for linux build jobs #8

Workflow file for this run

# 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-22.04
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
- name: Configure tests
run: >
GTEST_ROOT=/usr/local
cmake -B ./build -S ./test -DCMAKE_BUILD_TYPE=Release
- name: Build and execute tests
run: cmake --build ./build --target check