feature add i686
Some checks failed
build-crpc / build (Debug, mingw-w64-x86_64.toolchain.cmake) (push) Waiting to run
build-crpc / build (Debug, mingw-w64-xi686.toolchain.cmake) (push) Waiting to run
build-crpc / build (Release, host.toolchain.cmake) (push) Waiting to run
build-crpc / build (Release, mingw-w64-x86_64.toolchain.cmake) (push) Waiting to run
build-crpc / build (Release, mingw-w64-xi686.toolchain.cmake) (push) Waiting to run
build-crpc / build (Debug, host.toolchain.cmake) (push) Failing after 56s

This commit is contained in:
tqcq 2023-12-03 12:12:30 +08:00
parent 075c3df7a3
commit 0372b7f3df
2 changed files with 22 additions and 1 deletions

View File

@ -11,13 +11,17 @@ jobs:
- Release - Release
toolchain: toolchain:
- mingw-w64-x86_64.toolchain.cmake - mingw-w64-x86_64.toolchain.cmake
- mingw-w64-xi686.toolchain.cmake
- host.toolchain.cmake - host.toolchain.cmake
steps: steps:
- name: Install Dependencies - name: Install Dependencies
run: | run: |
# uuid-dev is required by antlr4
apt-get update -y apt-get update -y
apt-get install -y \ apt-get install -y \
cmake make g++ libssl-dev pkg-config autoconf libtool libantlr4-runtime-dev default-jre-headless cmake make g++ libssl-dev pkg-config autoconf libtool libantlr4-runtime-dev default-jre-headless mingw-w64 && \
uuid-dev
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Generate Lexer and Parser - name: Generate Lexer and Parser
run: | run: |

View File

@ -0,0 +1,17 @@
set(CMAKE_SYSTEM_NAME Windows)
set(TOOLCHAIN_PREFIX i686-w64-mingw32)
set(CMAKE_CROSSCOMPILING TRUE)
# cross compilers to use for C, C++ and Fortran
set(CMAKE_C_COMPILER ${TOOLCHAIN_PREFIX}-gcc)
set(CMAKE_CXX_COMPILER ${TOOLCHAIN_PREFIX}-g++)
set(CMAKE_Fortran_COMPILER ${TOOLCHAIN_PREFIX}-gfortran)
set(CMAKE_RC_COMPILER ${TOOLCHAIN_PREFIX}-windres)
# target environment on the build host system
set(CMAKE_FIND_ROOT_PATH /usr/${TOOLCHAIN_PREFIX})
# modify default behavior of FIND_XXX() commands
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)