Skip to content
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 -T v141_xp ..
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-d.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-d.dll
build\Debug\zlib.dll
build_release_x86:
runs-on: windows-2019
steps:
- uses: actions/checkout@v4
- uses: microsoft/setup-msbuild@v2
with:
vs-version: '14.0'
msbuild-architecture: x86
# - 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