-
-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c914546
commit a71028c
Showing
1 changed file
with
12 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,36 @@ | ||
name: build-windows | ||
# on: | ||
# schedule: | ||
# - cron: '0 0 * * *' | ||
on: | ||
schedule: | ||
- cron: '0 0 * * *' | ||
#on: | ||
# push: | ||
# branches: | ||
# - master | ||
push: | ||
branches: | ||
- master | ||
jobs: | ||
build: | ||
name: Build | ||
runs-on: windows-2019 | ||
strategy: | ||
matrix: | ||
target: [desktop] | ||
arch: [win64_msvc2019_64] | ||
version: [5.15.2, 6.7.3] | ||
include: | ||
- version: 5.15.2 | ||
cmake-prefix-path: 'lib/cmake/Qt5' | ||
modules: 'qtcharts' | ||
- version: 6.7.3 | ||
cmake-prefix-path: 'lib/cmake/Qt6' | ||
moudles: 'qtcharts qtserialbus qtserialport qtwebsockets' | ||
arch: [win64_msvc2022_64] | ||
version: [6.8.*] | ||
steps: | ||
- name: Pull code | ||
uses: actions/checkout@v1 | ||
uses: actions/checkout@v4 | ||
- name: Install Qt | ||
uses: jurplel/install-qt-action@v3 | ||
with: | ||
version: ${{ matrix.version }} | ||
target: ${{ matrix.target }} | ||
arch: ${{ matrix.arch }} | ||
dir: ${{ github.workspace }} | ||
modules: ${{ matrix['moudles']}} | ||
modules: 'qtcharts qtserialbus qtserialport qtwebsockets' | ||
- 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 -DWITH_TOOLS:BOOL=OFF -DCMAKE_PREFIX_PATH='${{ github.workspace }}/Qt/${{ matrix.version }}/${{ matrix.arch }}/${{ matrix.cmake-prefix-path }}' -DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles" ../ | ||
call "C:\Program Files (x86)\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 | ||
cmake -DCMAKE_PREFIX_PATH='${{ github.workspace }}/Qt/${{ matrix.version }}/${{ matrix.arch }}' -DCMAKE_BUILD_TYPE=Release -G "NMake Makefiles" ../ | ||
nmake |