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..a6ca149ec --- /dev/null +++ b/.github/workflows/testcpp/CMakeLists.txt @@ -0,0 +1,19 @@ +# 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) + +find_package(MPI REQUIRED CXX) + +# 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) +target_link_libraries(testprog MPI::MPI_CXX) diff --git a/.github/workflows/testcpp/test.cpp b/.github/workflows/testcpp/test.cpp new file mode 100644 index 000000000..78d232316 --- /dev/null +++ b/.github/workflows/testcpp/test.cpp @@ -0,0 +1,8 @@ +// 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. + +int main() { + return 0; +}