Skip to content

Try to fix workflows for qt6 #97

Try to fix workflows for qt6

Try to fix workflows for qt6 #97

name: Windows
on: push
jobs:
buildWin:
runs-on: windows-latest
steps:
- name: checkout sources
uses: actions/checkout@v2
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
aqtversion: '==3.1.*'
version: '6.8.0'
arch: win64_mingw
extra: '--external 7z'
target: 'desktop'
host: 'windows'
modules: 'qtimageformats'
- name: Build Laigter
shell: cmd
run: |
qmake
make
dir
mkdir \laigter-windows
windeployqt --compiler-runtime --dir .\laigter-windows .\release\laigter.exe
copy /Y .\release\laigter.exe .\laigter-windows\laigter.exe
tar.exe -a -c -f laigter-windows.zip laigter-windows
- name: upload artifacts
uses: actions/upload-artifact@v3
with:
name: mac-artifacts
path: laigter-windows.zip
- name: GitHub Releases
uses: svenstaro/upload-release-action@v2
if: startsWith(github.ref, 'refs/tags/')
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: laigter-windows.zip
tag: ${{ github.ref }}