2022-05-29 01:06:00 +08:00
|
|
|
name: Windows CI
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
msvc-build:
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
vs: ['2019']
|
|
|
|
msvc_arch: ['x64']
|
|
|
|
|
|
|
|
runs-on: windows-2019
|
|
|
|
|
|
|
|
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'
|
|
|
|
version: '5.15.2'
|
|
|
|
- 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
|