Skip to content

Fix GCC compilation on CI #372

Fix GCC compilation on CI

Fix GCC compilation on CI #372

name: Unit tests Linux
on: [push]
jobs:
unit-tests:
name: Build and run
runs-on: ubuntu-latest
compiler: gcc

Check failure on line 9 in .github/workflows/unit_tests_linux.yml

View workflow run for this annotation

GitHub Actions / Unit tests Linux

Invalid workflow file

The workflow is not valid. .github/workflows/unit_tests_linux.yml (Line: 9, Col: 5): Unexpected value 'compiler' .github/workflows/unit_tests_linux.yml (Line: 10, Col: 5): Unexpected value 'gcc'
gcc: 14
steps:
- name: Checkout the project
uses: actions/checkout@v2
- name: CMake
run: |
cd ./build
CXX=/usr/bin/g++-14 cmake -G"Unix Makefiles" ./.. -DCMAKE_BUILD_TYPE=Release
- name: Make
run: |
cd ./build
make
- name: Execute unit tests
run: |
cd ./build
./tests/unit_tests/UnitTests --gtest_also_run_disabled_tests