Skip to content

Commit

Permalink
fixup! Add workflow to test Check examples
Browse files Browse the repository at this point in the history
  • Loading branch information
d-alonso committed Dec 10, 2024
1 parent 87f9794 commit 0182eaa
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/utils/CheckExamples/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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)

Expand All @@ -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
Expand Down

0 comments on commit 0182eaa

Please sign in to comment.