Trying to fix building for Windows XP part 4 #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Release (x86, x64) | |
on: | |
push: | |
branches: | |
- main | |
- development | |
pull_request: | |
branches: | |
- main | |
- development | |
workflow_dispatch: | |
jobs: | |
build_debug_x86: | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Building i686 (Debug) | |
run: | | |
mkdir build | |
cd build | |
cmake -G "Visual Studio 16 2019" -A Win32 .. | |
cmake --build . --config Debug | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "Debug x86" | |
path: | | |
build\Debug\xp-apps.exe | |
build\Debug\cpr.dll | |
build\Debug\libcurl.dll | |
build\Debug\zlib.dll | |
build_debug_x64: | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Building x64 (Debug) | |
run: | | |
mkdir build | |
cd build | |
cmake -G "Visual Studio 16 2019" .. | |
cmake --build . --config Debug | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "Debug x64" | |
path: | | |
build\Debug\xp-apps.exe | |
build\Debug\cpr.dll | |
build\Debug\libcurl.dll | |
build\Debug\zlib.dll | |
build_release_x86: | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v4 | |
# - run: dir "C:\Program Files" | |
# - name: Set up MinGW | |
# uses: egor-tensin/setup-mingw@v2 | |
# with: | |
# platform: i686 | |
# version: 12.2.0 | |
# - name: Downloading mingw64 i686 and extracting | |
# run: | | |
# mkdir temp | |
# curl -Lo ${{github.workspace}}\temp\mingw64.7z https://github.com/niXman/mingw-builds-binaries/releases/download/13.2.0-rt_v11-rev1/i686-13.2.0-release-win32-dwarf-msvcrt-rt_v11-rev1.7z | |
# Expand-7ZipArchive -Path ${{github.workspace}}\temp\mingw64.7z -DestinationPath C:\ | |
- name: Building i686 (Release) | |
run: | | |
mkdir build | |
cd build | |
cmake -G "Visual Studio 16 2019" -A Win32 -T v141_xp .. | |
cmake --build . --config Release | |
# $env:path += ";C:\mingw32\bin\;" | |
# cmake -D CMAKE_C_COMPILER=C:\mingw32\bin\gcc.exe -D CMAKE_CXX_COMPILER=C:\mingw32\bin\g++.exe .. | |
- run: dir "${{github.workspace}}\build\Release" | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "Release x86" | |
path: | | |
build\Release\xp-apps.exe | |
build\Release\cpr.dll | |
build\Release\libcurl.dll | |
build\Release\zlib.dll | |
build_release_x64: | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Building x64 | |
run: | | |
mkdir build | |
cd build | |
cmake -G "Visual Studio 16 2019" .. | |
cmake --build . --config Release | |
# mkdir build | |
# cd build | |
# cmake -G "Unix Makefiles" -D CMAKE_C_COMPILER=/usr/bin/x86_64-w64-mingw32-gcc -D CMAKE_CXX_COMPILER=/usr/bin/x86_64-w64-mingw32-g++ .. | |
# cmake --build . --config Release | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: "Release x64" | |
path: | | |
build\Release\xp-apps.exe | |
build\Release\cpr.dll | |
build\Release\libcurl.dll | |
build\Release\zlib.dll |