Update to new Windows build container
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
84052a2d94
commit
d9aca71d32
|
@ -30,14 +30,10 @@ steps:
|
|||
- name: test-release-windows
|
||||
image: deukhoofd/windowsbuilder
|
||||
commands:
|
||||
- update-alternatives --set i686-w64-mingw32-gcc /usr/bin/i686-w64-mingw32-gcc-posix
|
||||
- update-alternatives --set i686-w64-mingw32-g++ /usr/bin/i686-w64-mingw32-g++-posix
|
||||
- update-alternatives --set x86_64-w64-mingw32-gcc /usr/bin/x86_64-w64-mingw32-gcc-posix
|
||||
- update-alternatives --set x86_64-w64-mingw32-g++ /usr/bin/x86_64-w64-mingw32-g++-posix
|
||||
- cmake -DCMAKE_BUILD_TYPE=Release . -B build-release-windows -D CMAKE_C_COMPILER=/usr/bin/x86_64-w64-mingw32-gcc -D CMAKE_CXX_COMPILER=x86_64-w64-mingw32-g++ -DWINDOWS=ON -DSTATICC=ON
|
||||
- cmake -DCMAKE_BUILD_TYPE=Release . -B build-release-windows -D CMAKE_C_COMPILER=/home/wclang/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-clang -D CMAKE_CXX_COMPILER=/home/wclang/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-clang++ -DWINDOWS=ON -DSTATICC=ON
|
||||
- cmake --build build-release-windows --target all -- -j 4
|
||||
- mv build-release-windows/ArbutilsTests build-release-windows/ArbutilsTests.exe
|
||||
- export WINEARCH=win64
|
||||
- cp /usr/x86_64-w64-mingw32/lib/libwinpthread-1.dll /drone/src/build-release-windows/
|
||||
- wine build-release-windows/ArbutilsTests.exe -s
|
||||
- name: conan-deploy
|
||||
image: deukhoofd/linux64builder
|
||||
|
|
|
@ -3,6 +3,7 @@ project(Arbutils)
|
|||
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror")
|
||||
set(CMAKE_CXX_STANDARD 20)
|
||||
find_package(Threads)
|
||||
|
||||
if (WINDOWS)
|
||||
ADD_DEFINITIONS(-D WINDOWS=1)
|
||||
|
@ -11,10 +12,18 @@ endif (WINDOWS)
|
|||
file(GLOB_RECURSE SRC_FILES "src/*.cpp" "src/*.hpp" "CInterface/*.cpp")
|
||||
set(LIBTYPE STATIC)
|
||||
if (SHARED)
|
||||
set(LIBTYPE SHARED src/StringView.hpp src/String/BasicStringView.hpp src/String/StringViewLiteral.hpp CInterface/Random.cpp)
|
||||
set(LIBTYPE SHARED)
|
||||
endif (SHARED)
|
||||
add_library(Arbutils ${LIBTYPE} ${SRC_FILES})
|
||||
|
||||
if (WINDOWS)
|
||||
MESSAGE(WARNING, "Using Windows Build.")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m64 -Wa,-mbig-obj -pthread")
|
||||
endif (WINDOWS)
|
||||
|
||||
if (STATICC)
|
||||
target_link_libraries(Arbutils -static)
|
||||
endif (STATICC)
|
||||
|
||||
file(GLOB_RECURSE TEST_FILES "tests/*.cpp" "tests/*.hpp")
|
||||
if (NOT DEFINED CONAN_EXPORTED)
|
||||
|
@ -22,17 +31,6 @@ if (NOT DEFINED CONAN_EXPORTED)
|
|||
target_link_libraries(ArbutilsTests Arbutils)
|
||||
endif ()
|
||||
|
||||
if (WINDOWS)
|
||||
MESSAGE(WARNING, "Using Windows Build.")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m64 -Wa,-mbig-obj -Wl,-allow-multiple-definition")
|
||||
endif (WINDOWS)
|
||||
|
||||
if (STATICC)
|
||||
target_link_libraries(Arbutils -static-libgcc -static-libstdc++)
|
||||
if (NOT DEFINED CONAN_EXPORTED)
|
||||
target_link_libraries(ArbutilsTests -static-libgcc -static-libstdc++)
|
||||
endif()
|
||||
endif(STATICC)
|
||||
|
||||
if (NOT DEFINED CONAN_EXPORTED)
|
||||
target_compile_definitions(ArbutilsTests PRIVATE TESTS_BUILD)
|
||||
|
|
Loading…
Reference in New Issue