Update compile.yaml #55
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 windows | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
env: | |
MIDIEDITOR_RELEASE_VERSION_STRING: "\"continuous integration triggered by ${{ github.sha }}\"" | |
MIDIEDITOR_RELEASE_DATE: "" | |
if: always() | |
strategy: | |
matrix: | |
include: | |
- qt_ver: 5.15.2 | |
qt_arch: win64_msvc2019_64 | |
msvc_arch: x64 | |
qt_arch_install: msvc2019_64 | |
steps: | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v3 | |
with: | |
version: ${{ matrix.qt_ver }} | |
arch: ${{ matrix.qt_arch }} | |
host: 'windows' | |
target: 'desktop' | |
cache: 'false' | |
- uses: jmarrec/setup-qtifw@v1 | |
with: | |
qtifw-version: '4.x' | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
submodules: true | |
- name: msvc-build | |
id: build | |
shell: cmd | |
run: | | |
set MIDIEDITOR_RELEASE_DATE="%DATE%" | |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" ${{ matrix.msvc_arch }} | |
qmake | |
nmake | |
- name: Copy Files | |
shell: pwsh | |
run: | | |
mkdir ./packaging/org.midieditor.midieditor/data/ | |
cp ./bin/ProMidEdit.exe ./packaging/org.midieditor.midieditor/data/ProMidEdit.exe | |
windeployqt ./packaging/org.midieditor.midieditor/data/ProMidEdit.exe | |
mkdir ./packaging/org.midieditor.midieditor/data/metronome | |
cp ./run_environment/metronome/metronome-01.wav ./packaging/org.midieditor.midieditor/data/metronome | |
mkdir ./packaging/org.midieditor.manual/data/ | |
cp -Recurse -Path ./manual/ -Destination ./packaging/org.midieditor.manual/data/ | |
- name: packaging | |
shell: cmd | |
run: | | |
binarycreator.exe --offline-only -c .\scripts\packaging\windows\config.xml -p .\packaging Install.exe | |
- name: Upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: midieditor-${{ matrix.qt_ver }}-${{ matrix.qt_arch }} | |
path: | | |
Install.exe | |
- name: Report | |
shell: cmd | |
run: | | |
echo winSdkDir=%WindowsSdkDir% >> %GITHUB_ENV% | |
echo winSdkVer=%WindowsSdkVersion% >> %GITHUB_ENV% | |
echo vcToolsInstallDir=%VCToolsInstallDir% >> %GITHUB_ENV% | |
echo vcToolsRedistDir=%VCToolsRedistDir% >> %GITHUB_ENV% |