Skip to content

Commit

Permalink
Don't do PDF timestamp check if running on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
firthm01 committed May 21, 2024
1 parent a4b2a58 commit 8e5f79a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packaging/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ function(check_commit_timestamp_not_after SOURCE_FILE DEST_FILE)
endif()
endfunction()

check_commit_timestamp_not_after(LICENSE.md LICENSE.pdf)
check_commit_timestamp_not_after(${PROJECT_SOURCE_DIR}/CHANGELOG.md README.pdf)
check_commit_timestamp_not_after(README.md.in README.pdf)
if(NOT EPS_CI) # This prevents build failure if the runner generating the docs has a system time behind the system used to modify the MDs
check_commit_timestamp_not_after(LICENSE.md LICENSE.pdf)
check_commit_timestamp_not_after(${PROJECT_SOURCE_DIR}/CHANGELOG.md README.pdf)
check_commit_timestamp_not_after(README.md.in README.pdf)
endif()

add_custom_target(generate-package-docs
COMMAND
Expand Down

0 comments on commit 8e5f79a

Please sign in to comment.