pineapple-pictures/.github/workflows/windows.yml
Gary Wang b033370d8e
build: link user32.lib when build with QMake and MSVC (#59)
* build(msvc): add test for qmake build with msvc under windows
* fix(msvc): should link user32.lib under windows
* Update README.md
2022-05-29 01:06:00 +08:00

31 lines
777 B
YAML

name: Windows CI
on: [push, pull_request]
jobs:
msvc-build:
strategy:
matrix:
vs: ['2019']
msvc_arch: ['x64']
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- name: Install Qt
uses: jurplel/install-qt-action@v2
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