Separate mingw and msvc actions #130
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: x86-windows | |
on: push | |
jobs: | |
x86-windows: | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v1 | |
with: | |
fetch-depth: 1 | |
- name: Download prebuilt qt 5.6 | |
shell: bash | |
run: | | |
mkdir C:/Qt | |
cd C:/Qt | |
curl --retry 5 --connect-timeout 30 --location --remote-header-name --output qt.7z https://github.com/xavery/qt563xp/releases/download/1.2/Qt-5.6.3-Static-XP.7z | |
7z x qt.7z | |
rm qt.7z | |
- name: Set x86 windows build tools as default | |
uses: ilammy/msvc-dev-cmd@v1 | |
with: | |
arch: win32 | |
toolset: 14.16 | |
- name: Make v141_xp toolset v141 | |
shell: bash | |
run: | | |
cd "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Microsoft\VC\v150\Platforms\Win32\PlatformToolsets" | |
rm -r v141 || true | |
mv v141_xp v141 | |
- name: Qmake build | |
shell: cmd | |
run: | | |
set PATH=C:\Qt\5.6.3-Static-XP\bin;%PATH% | |
mkdir build && cd build | |
qmake -o Makefile ../Datacorn.pro | |
set CL=/MP | |
nmake release | |
- name: Setup directory with artifacts | |
shell: bash | |
run: | | |
export RDIR=Datacorn | |
mkdir $RDIR | |
cp build/binary/Datacorn.exe $RDIR/ | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Datacorn | |
path: Datacorn/ | |
- name: Release | |
if: ${{ github.ref == 'refs/heads/master' }} | |
uses: svenstaro/upload-release-action@v2 | |
with: | |
overwrite: true | |
asset_name: Datacorn.exe | |
prerelease: true | |
tag: | | |
latest | |
file: | | |
Datacorn/Datacorn.exe |