Build RetroED #32
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 RetroED | |
on: workflow_dispatch | |
jobs: | |
win-build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Setup MSVC | |
uses: ilammy/msvc-dev-cmd@v1 | |
- name: Install Qt | |
uses: jurplel/[email protected] | |
with: | |
setup-python: false | |
- name: Download Jom | |
run: | | |
Invoke-WebRequest http://qt.mirror.constant.com/official_releases/jom/jom_1_1_3.zip -OutFile "jom.zip" | |
mkdir build | |
Expand-Archive -Path jom.zip -DestinationPath build | |
- name: Run versiongen | |
working-directory: RetroEDv2 | |
run: | | |
py -m pip install pytz | |
py versiongen.py $Env:GITHUB_SHA | |
- name: Build RetroED | |
working-directory: build | |
run: | | |
qmake ../RetroEDv2/RetroEDv2.pro -spec win32-msvc "CONFIG+=qtquickcompiler" | |
./jom qmake_all | |
./jom -f Makefile.release -j4 | |
- name: Move Artifacts | |
run: | | |
mkdir artifacts | |
mkdir artifacts/platforms/ | |
mkdir artifacts/imageformats/ | |
move build/release/RetroED.exe artifacts | |
move $Env:Qt5_Dir/bin/Qt5Core.dll artifacts | |
move $Env:Qt5_Dir/bin/Qt5Widgets.dll artifacts | |
move $Env:Qt5_Dir/bin/Qt5Svg.dll artifacts | |
move $Env:Qt5_Dir/bin/Qt5Xml.dll artifacts | |
move $Env:Qt5_Dir/bin/Qt5Gui.dll artifacts | |
move $Env:Qt5_Dir/plugins/platforms/qwindows.dll artifacts/platforms | |
move $Env:Qt5_Dir/plugins/platforms/qoffscreen.dll artifacts/platforms | |
move $Env:Qt5_Dir/plugins/platforms/qdirect2d.dll artifacts/platforms | |
move $Env:Qt5_Dir/plugins/platforms/qminimal.dll artifacts/platforms | |
move $Env:Qt5_Dir/plugins/imageformats/qsvg.dll artifacts/imageformats | |
- name: Upload artifacts | |
uses: actions/[email protected] | |
with: | |
name: retroED-win | |
path: artifacts |