Skip to content

[CI] uses: Jarod42/install-premake5@v1 #48

[CI] uses: Jarod42/install-premake5@v1

[CI] uses: Jarod42/install-premake5@v1 #48

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:
- uses: Jarod42/install-premake5@v1
- 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}}'
- 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.*