[CI][premake] Use Qt5.15.0 and Qt6.0.4 #44
Workflow file for this run
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: windows_premake | |
on: | |
workflow_dispatch: | |
push: | |
pull_request: | |
jobs: | |
windows: | |
runs-on: windows-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
qt-version: ['5.15.0', '6.0.4'] | |
include: | |
- qt-arch: 'win64_msvc2019_64' # No 2022 version yet | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Installing Qt - ${{matrix.qt-version}} ${{matrix.qt-arch}} | |
uses: jurplel/install-qt-action@v4 | |
with: | |
version: ${{matrix.qt-version}} | |
arch: ${{matrix.qt-arch}} | |
cache: true | |
cache-key-prefix: 'qt-action@v4-Qt${{matrix.qt-version}}_${{matrix.qt-arch}}' | |
# Premake | |
- name: checkout premake5 | |
uses: actions/checkout@v4 | |
with: | |
repository: premake/premake-core | |
path: premake-build | |
- name: Build premake5 | |
run: | | |
$vcvarall_path = vswhere -find VC\Auxiliary\Build\vcvarsall.bat | |
cmd.exe /c "call ""$vcvarall_path"" x86_amd64 && cd premake-build && nmake -f Bootstrap.mak MSDEV=vs2022 windows-msbuild PLATFORM=Win32 CONFIG=release && cp bin/release/premake5.exe ../" | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v2 | |
- name: build with premake | |
run: | | |
./premake5 vs2022 --qt-root=$Env:QT_ROOT_DIR --qt-version=${{matrix.qt-version}} && cd solution/vs2022 && msbuild.exe /property:Configuration=Release /property:Platform=x64 qt-json-editor.sln | |
- name: Upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: qt-json-editor-qt${{matrix.qt-version}} | |
path: | | |
bin/vs2022/x64/Release/*.* | |
${{ env.QT_ROOT_DIR }}/plugins/designer/qt-json-designer-plugin.* |