Decouple tests from sources #801
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
name: g++ | |
on: | |
push: | |
branches: | |
- 'main' | |
workflow_dispatch: | |
pull_request: | |
env: | |
BUILD_TYPE: Debug | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Build docker image | |
run: docker build -t test . | |
- name: Run docker container | |
run: docker run test | |
external_dependencies: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Configure python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.10' | |
- name: Install conan and ninja | |
run: pip install conan ninja | |
- name: Install libraries dependencies | |
run: | | |
CC=gcc-13 CXX=g++-13 conan profile detect && \ | |
conan install -r conancenter -s compiler.cppstd=20 \ | |
--requires=fmt/10.2.1 --requires=gtest/1.14.0 \ | |
-g CMakeToolchain -g CMakeDeps \ | |
--build=missing -of conan \ | |
-c tools.build:compiler_executables='{"c": "gcc-13", "cxx": "g++-13"}' | |
- name: CMake build | |
run: | | |
cmake -B build -S . -G Ninja \ | |
-DUSE_SYSTEM_DEPENDENCIES=ON \ | |
-DCMAKE_VERBOSE_MAKEFILE=ON \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
-DCMAKE_CXX_COMPILER=g++-13 \ | |
-DCMAKE_C_COMPILER=gcc-13 \ | |
-DBUILD_TESTING:BOOL=ON \ | |
-DCMAKE_TOOLCHAIN_FILE=conan/conan_toolchain.cmake && \ | |
cmake --build build |