Skip to content

Commit

Permalink
chore: import the file to project
Browse files Browse the repository at this point in the history
  • Loading branch information
x-tools-author committed Nov 22, 2023
1 parent 4ca33be commit 34ad15b
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: build-windows
on:
push:
branches:
- master
paths-ignore:
- 'doc/**'
- '*.md'
pull_request:
branches:
- master
paths-ignore:
- 'doc/**'
- '*.md'

jobs:
build-test:
name: Build
runs-on: windows-2019
strategy:
matrix:
target: [desktop]
arch: [win64_msvc2019_64]
version: [5.15.2, 6.5.3]
include:
- version: 5.15.2
cmake-prefix-path: 'lib/cmake/Qt5'
- version: 6.5.3
cmake-prefix-path: 'lib/cmake/Qt6'
steps:
- name: Pull code
uses: actions/checkout@v1
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.version }}
target: ${{ matrix.target }}
arch: ${{ matrix.arch }}
dir: '${{ github.workspace }}'
- name: build-msvc
shell: cmd
run: |
mkdir build
cd build
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
cmake -DCMAKE_PREFIX_PATH='${{ github.workspace }}/Qt/${{ matrix.version }}/${{ matrix.arch }}/${{ matrix.cmake-prefix-path }}' -DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles" ../
nmake

0 comments on commit 34ad15b

Please sign in to comment.