Skip to content

Commit

Permalink
Generate CMalke toolchain file
Browse files Browse the repository at this point in the history
  • Loading branch information
AnClark committed Apr 9, 2024
1 parent baff116 commit 1de1460
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,17 @@ jobs:
- name: Build win64 cross-compiled plugins
env:
CC: x86_64-w64-mingw32-gcc
CXX: x86_64-w64-mingw32-g++
CMAKE_SYSTEM_NAME: Windows
CMAKE_SYSTEM_PROCESSOR: x86_64
CMAKE_FIND_ROOT_PATH: /usr/x86_64-w64-mingw32/
EXE_WRAPPER: wine
PKG_CONFIG: "false"
WINEDEBUG: "-all"
run: |
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
echo "SET(CMAKE_SYSTEM_NAME Windows)" > windows-cross-build.cmake
echo "SET(CMAKE_SYSTEM_PROCESSOR x86_64)" >> windows-cross-build.cmake
echo "SET(CMAKE_C_COMPILER /usr/bin/x86_64-w64-mingw32-gcc)" >> windows-cross-build.cmake
echo "SET(CMAKE_CXX_COMPILER /usr/bin/x86_64-w64-mingw32-g++)" >> windows-cross-build.cmake
echo "SET(CMAKE_RC_COMPILER /usr/bin/x86_64-w64-mingw32-windres)" >> windows-cross-build.cmake
echo "SET(CMAKE_FIND_ROOT_PATH /usr/x86_64-w64-mingw32/)" >> windows-cross-build.cmake
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=windows-cross-build.cmake
make -C build -j $(nproc)
- name: Set sha8 (non-release)
Expand Down

0 comments on commit 1de1460

Please sign in to comment.