Updates build.yml & moves TEST variable setup

develop
Josh Cooper 2022-11-13 12:43:21 -08:00
parent d03f93c0d7
commit b11b1c3d5f
2 changed files with 10 additions and 7 deletions

@ -99,7 +99,10 @@ jobs:
- name: Run unit tests
id: run_tests1
run: |
exit build-ci/library/tests/test-library
if build-ci/library/tests/test-library; then
exit 0
fi
exit 1
- name: Run lua tests
id: run_tests2
run: |

@ -394,6 +394,12 @@ else()
endif()
endif()
if(BUILD_TESTING)
message("BUILD TESTS: Core, Scripts")
set(BUILD_SCRIPT_TESTS ON FORCE)
set(BUILD_CORE_TESTS ON FORCE)
endif()
# Support linking against external tinyxml
# If we find an external tinyxml, set the DFHACK_TINYXML variable to "tinyxml"
# Otherwise, set it to "dfhack-tinyxml"
@ -409,12 +415,6 @@ else()
set(DFHACK_TINYXML "dfhack-tinyxml")
endif()
if(BUILD_TESTING)
message("BUILD TESTS: Core, Scripts")
set(BUILD_SCRIPT_TESTS ON FORCE)
set(BUILD_CORE_TESTS ON FORCE)
endif()
find_package(ZLIB REQUIRED)
if(BUILD_CORE_TESTS)