From a368898a0b255ad20f5592734bbe1a3191dcfd92 Mon Sep 17 00:00:00 2001 From: Faumaray Date: Mon, 20 Oct 2025 22:56:32 +0300 Subject: [PATCH] docker Signed-off-by: Faumaray --- Jenkinsfile | 4 +++- mingw.cmake | 13 +++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 90426f9..c3fe14b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,7 @@ pipeline { - agent any + agent { + docker { image 'faumaray/jdk-mingw-cpp:latest' } + } parameters { string(name: 'TAG_NAME', defaultValue: 'latest', description: 'Tag name for Gitea release') diff --git a/mingw.cmake b/mingw.cmake index c7cca00..c12fb90 100644 --- a/mingw.cmake +++ b/mingw.cmake @@ -1,4 +1,17 @@ +# toolchain-mingw64.cmake set(CMAKE_SYSTEM_NAME Windows) +set(CMAKE_SYSTEM_PROCESSOR x86_64) + +# specify the cross compiler set(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc) set(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++) set(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres) + +# where is the target environment +set(CMAKE_FIND_ROOT_PATH /usr/x86_64-w64-mingw32) + +# search for programs in the build host directories +set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) +# for libraries and headers in the target directories +set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) +set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) \ No newline at end of file