From a278d87cfde1bff4ed41f0923dd72c0b1341d698 Mon Sep 17 00:00:00 2001 From: Rupert Nash Date: Tue, 19 Dec 2023 13:34:12 +0000 Subject: [PATCH] debug CI --- .github/workflows/main-app.yml | 12 ++++++++++++ .github/workflows/testcpp/CMakeLists.txt | 16 ++++++++++++++++ .github/workflows/testcpp/test.cpp | 3 +++ 3 files changed, 31 insertions(+) create mode 100644 .github/workflows/testcpp/CMakeLists.txt create mode 100644 .github/workflows/testcpp/test.cpp diff --git a/.github/workflows/main-app.yml b/.github/workflows/main-app.yml index 77fcdba29..0400d7ced 100644 --- a/.github/workflows/main-app.yml +++ b/.github/workflows/main-app.yml @@ -57,6 +57,18 @@ jobs: with: name: fluidonly + - name: Code configure + run: >- + cmake + -S ${{github.workspace}}/.github/workflows/testcpp + -B ${{github.workspace}}/build-testcpp + -DCMAKE_BUILD_TYPE=$BUILD_TYPE + + - name: Build + working-directory: ${{github.workspace}}/build-testcpp + 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; +}