Skip to content

Commit

Permalink
CI: Added option to download data before compile (#1054)
Browse files Browse the repository at this point in the history
* Added SIMPLNX_DOWNLOAD_TEST_FILES_FIRST option
* Forces test files to be downloaded before simplnx
* This will hopefully fix the issue of downloads failing on the CI sporadically
* Enabled SIMPLNX_DOWNLOAD_TEST_FILES_FIRST for CI builds

Signed-off-by: Jared Duffey <[email protected]>
  • Loading branch information
JDuffeyBQ authored Aug 27, 2024
1 parent 7fb7ffe commit 609b070
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -829,6 +829,11 @@ target_include_directories(simplnx
$<INSTALL_INTERFACE:include>
)

cmake_dependent_option(SIMPLNX_DOWNLOAD_TEST_FILES_FIRST "Forces test files to download before simplnx builds" OFF "SIMPLNX_DOWNLOAD_TEST_FILES" OFF)
if(SIMPLNX_DOWNLOAD_TEST_FILES_FIRST)
add_dependencies(simplnx Fetch_Remote_Data_Files)
endif()

# ------------------------------------------------------------------------------
# CLI Executable
# ------------------------------------------------------------------------------
Expand Down
4 changes: 4 additions & 0 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@
"VCPKG_OVERLAY_TRIPLETS": {
"type": "PATH",
"value": "${sourceDir}/cmake/triplets"
},
"SIMPLNX_DOWNLOAD_TEST_FILES_FIRST": {
"type": "BOOL",
"value": "ON"
}
}
},
Expand Down

0 comments on commit 609b070

Please sign in to comment.