2022-05-29 01:06:00 +08:00
|
|
|
name: Windows CI
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2024-07-06 14:09:00 +08:00
|
|
|
msvc-qmake-build:
|
2022-05-29 01:06:00 +08:00
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2024-07-06 14:09:00 +08:00
|
|
|
vs: ['2022']
|
2022-05-29 01:06:00 +08:00
|
|
|
msvc_arch: ['x64']
|
|
|
|
|
2024-07-06 14:09:00 +08:00
|
|
|
runs-on: windows-2022
|
2022-05-29 01:06:00 +08:00
|
|
|
|
|
|
|
steps:
|
2024-02-16 13:29:43 +08:00
|
|
|
- uses: actions/checkout@v4
|
2022-05-29 01:06:00 +08:00
|
|
|
- name: Install Qt
|
2023-03-25 17:49:52 +08:00
|
|
|
uses: jurplel/install-qt-action@v3
|
2022-05-29 01:06:00 +08:00
|
|
|
with:
|
|
|
|
arch: 'win64_msvc2019_64'
|
2024-07-06 14:09:00 +08:00
|
|
|
version: '6.7.1'
|
2022-05-29 01:06:00 +08:00
|
|
|
- name: Build
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
|
|
|
set VS=${{ matrix.vs }}
|
|
|
|
set VCVARS="C:\Program Files (x86)\Microsoft Visual Studio\%VS%\Enterprise\VC\Auxiliary\Build\vcvarsall.bat"
|
|
|
|
if not exist %VCVARS% set VCVARS="C:\Program Files\Microsoft Visual Studio\%VS%\Enterprise\VC\Auxiliary\Build\vcvarsall.bat"
|
|
|
|
call %VCVARS% ${{ matrix.msvc_arch }}
|
|
|
|
qmake pineapple-pictures.pro
|
|
|
|
nmake
|
2024-07-06 14:09:00 +08:00
|
|
|
windeployqt --verbose=2 --no-quick-import --no-translations --no-opengl-sw --no-system-d3d-compiler --skip-plugin-types tls,networkinformation release\ppic.exe
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: windows-msvc2022-qt6.7.1-qmake-package
|
|
|
|
path: release/*
|
|
|
|
|
|
|
|
msvc-cmake-build:
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
vs: ['2022']
|
|
|
|
msvc_arch: ['x64']
|
|
|
|
|
|
|
|
runs-on: windows-2022
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install Qt
|
|
|
|
uses: jurplel/install-qt-action@v3
|
|
|
|
with:
|
|
|
|
arch: 'win64_msvc2019_64'
|
|
|
|
version: '6.5.3'
|
|
|
|
- name: Build
|
|
|
|
shell: cmd
|
|
|
|
run: |
|
|
|
|
set PWD=%cd%
|
|
|
|
set VS=${{ matrix.vs }}
|
|
|
|
set VCVARS="C:\Program Files (x86)\Microsoft Visual Studio\%VS%\Enterprise\VC\Auxiliary\Build\vcvarsall.bat"
|
|
|
|
if not exist %VCVARS% set VCVARS="C:\Program Files\Microsoft Visual Studio\%VS%\Enterprise\VC\Auxiliary\Build\vcvarsall.bat"
|
|
|
|
call %VCVARS% ${{ matrix.msvc_arch }}
|
|
|
|
cmake -Bbuild . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="%PWD%\build\"
|
|
|
|
cmake --build build --config Release
|
|
|
|
cmake --build build --config Release --target=install
|
|
|
|
windeployqt --verbose=2 --no-quick-import --no-translations --no-opengl-sw --no-system-d3d-compiler --skip-plugin-types tls,networkinformation build\bin\ppic.exe
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: windows-msvc2022-qt6.5.3-cmake-package
|
|
|
|
path: build/bin/*
|