diff --git a/.github/workflows/main-app.yml b/.github/workflows/main-app.yml index 77fcdba29..82067831b 100644 --- a/.github/workflows/main-app.yml +++ b/.github/workflows/main-app.yml @@ -57,6 +57,20 @@ jobs: with: name: fluidonly + - name: Debug CI configure + run: >- + cmake + -S ${{github.workspace}}/.github/workflows/testcpp + -B ${{github.workspace}}/build-testcpp + -DCMAKE_BUILD_TYPE=$BUILD_TYPE + + - name: Debug CI build + working-directory: ${{github.workspace}}/build-testcpp + env: + VERBOSE: 1 + run: | + cmake --build . + - name: Code make build dir run: mkdir -p ${{github.workspace}}/build diff --git a/.github/workflows/testcpp/CMakeLists.txt b/.github/workflows/testcpp/CMakeLists.txt new file mode 100644 index 000000000..123d89fb6 --- /dev/null +++ b/.github/workflows/testcpp/CMakeLists.txt @@ -0,0 +1,16 @@ +# This file is part of HemeLB and is Copyright (C) +# the HemeLB team and/or their institutions, as detailed in the +# file AUTHORS. This software is provided under the terms of the +# license in the file LICENSE. + +cmake_minimum_required (VERSION 3.13) + +project(testcpp) + +# Set the language standard strictly. +set(CMAKE_CXX_STANDARD 20) +set(CMAKE_CXX_STANDARD_REQUIRED ON) +set(CMAKE_CXX_EXTENSIONS OFF) + +# Config XML checker (confcheck) +add_executable(testprog test.cpp) diff --git a/.github/workflows/testcpp/test.cpp b/.github/workflows/testcpp/test.cpp new file mode 100644 index 000000000..4cce7f667 --- /dev/null +++ b/.github/workflows/testcpp/test.cpp @@ -0,0 +1,3 @@ +int main() { + return 0; +}