From 0182eaa21e61bb3234f2d8f48ccdb49247645c9f Mon Sep 17 00:00:00 2001 From: Diego Alonso Date: Tue, 10 Dec 2024 09:50:59 +0100 Subject: [PATCH] fixup! Add workflow to test Check examples --- .github/utils/CheckExamples/CMakeLists.txt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/utils/CheckExamples/CMakeLists.txt b/.github/utils/CheckExamples/CMakeLists.txt index e97ae38..d2388ee 100644 --- a/.github/utils/CheckExamples/CMakeLists.txt +++ b/.github/utils/CheckExamples/CMakeLists.txt @@ -1,12 +1,12 @@ -# This just checks that files in the Check folders are compilable to avoid -# committing incorrect examples. It's done here, separately and in bulk, so that -# no overhead is added by default when submitting a new check. You'll hopefully -# only have to know this exists if your example fails to compile +# Checks that all "example codes" in the `Checks/` folders are compilable to +# avoid committing incorrect examples. It's done here, separately and in bulk, +# so that no overhead is added by default when submitting a new check. You'll +# hopefully only have to know this exists if your example fails to compile cmake_minimum_required(VERSION 3.25) project("Test that the check examples compile") -enable_language(Fortran OPTIONAL) +enable_language(Fortran) # Build them as libraries, not executables set (CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY) @@ -17,7 +17,9 @@ file(GLOB check_files ${BASE_DIR}/*/*.c ${BASE_DIR}/*/*.cpp ${BASE_DIR}/*/*.f + ${BASE_DIR}/*/*.F ${BASE_DIR}/*/*.f90 + ${BASE_DIR}/*/*.F90 ) # PWR068: Has a module file that has to be compiled in order, and a compilation error on purpose