attempting to fix big endian CI

This commit is contained in:
Tom Vercauteren 2024-02-20 08:52:11 +00:00
parent 96dafc5a6f
commit f575bbc921
2 changed files with 8 additions and 3 deletions

View File

@ -28,6 +28,7 @@ jobs:
apt-get -y install git
run: |
lscpu | grep Endian
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
make -j
ctest --output-on-failure
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} .
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
cd ${{github.workspace}}/build
ctest -C ${{env.BUILD_TYPE}} --output-on-failure

View File

@ -49,10 +49,14 @@ add_test(NAME roundtrip_test COMMAND roundtrip_test)
# Add some more tests
include(FetchContent)
if(${CMAKE_CXX_BYTE_ORDER} MATCHES BIG_ENDIAN)
set(FETCHCONTENT_QUIET FALSE)
endif()
FetchContent_Declare(
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG 750d67d809700ae8fca6d610f7b41b71aa161808
GIT_PROGRESS TRUE
SYSTEM
)
# For Windows: Prevent overriding the parent project's compiler/linker settings