Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 35 additions & 28 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,26 +190,30 @@ jobs:
run: |
$GITHUB_WORKSPACE/tools/test/releasetest/releasetest

build-windows-qt67-msvc2022:
build-windows-qt68-msvc2022:
runs-on: windows-latest
steps:
- uses: actions/checkout@main
- name: Setup msbuild
uses: microsoft/setup-msbuild@v2
with:
vs-version: '[17,18)' # 17.xx
msbuild-architecture: x64
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: '6.7.3'
host: 'windows'
target: 'desktop'
- name: Install VisualStudio tools
version: 6.8
host: windows
target: desktop
setup-python: false
- name: Install tools
run: |
choco install visualstudio2022community -y
choco install visualstudio2022-workload-nativedesktop -y
choco install sqlite -y
choco install cmake -y
- name: Build for debug mode
- name: Debug build
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
set CL=/MP
qmake -version
call configure.bat --enable-debug
Expand All @@ -219,15 +223,15 @@ jobs:
cd ..\tools
nmake
nmake install
- name: Test modules
- name: Module test
shell: cmd
run: |
cd src/test
call testall.bat
- name: Build for release mode
- name: Release build
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
set CL=/MP
call configure.bat
cd src
Expand All @@ -236,28 +240,29 @@ jobs:
cd ..\tools
nmake
nmake install
- name: Test release
- name: Release test
working-directory: tools\test\releasetest
run: |
.\releasetest.bat

build-windows-qt67-msvc2019:
build-windows-qt68-msvc2019:
runs-on: windows-latest
steps:
- uses: actions/checkout@main
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: '6.7.3'
host: 'windows'
target: 'desktop'
version: 6.8
host: windows
target: desktop
setup-python: false
- name: Install VisualStudio tools
run: |
choco install visualstudio2019community -y
choco install visualstudio2019-workload-nativedesktop -y
choco install sqlite -y
choco install cmake -y
- name: Build for debug mode
- name: Debug build
shell: cmd
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
Expand All @@ -270,12 +275,12 @@ jobs:
cd ..\tools
nmake
nmake install
- name: Test modules
- name: Module test
shell: cmd
run: |
cd src/test
call testall.bat
- name: Build for release mode
- name: Release build
shell: cmd
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
Expand All @@ -287,7 +292,7 @@ jobs:
cd ..\tools
nmake
nmake install
- name: Test release
- name: Release test
working-directory: tools\test\releasetest
run: |
.\releasetest.bat
Expand All @@ -299,16 +304,18 @@ jobs:
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: '6.5.2'
host: 'windows'
target: 'desktop'
version: 6.5.2
host: windows
target: desktop
arch: win64_msvc2019_64
setup-python: false
- name: Install VisualStudio tools
run: |
choco install visualstudio2019community -y
choco install visualstudio2019-workload-nativedesktop -y
choco install sqlite -y
choco install cmake -y
- name: Build for debug mode
- name: Debug build
shell: cmd
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
Expand All @@ -321,12 +328,12 @@ jobs:
cd ..\tools
nmake
nmake install
- name: Test modules
- name: Module test
shell: cmd
run: |
cd src/test
call testall.bat
- name: Build for release mode
- name: Release build
shell: cmd
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvars64.bat"
Expand All @@ -338,7 +345,7 @@ jobs:
cd ..\tools
nmake
nmake install
- name: Test release
- name: Release test
working-directory: tools\test\releasetest
run: |
.\releasetest.bat
9 changes: 4 additions & 5 deletions build.bat
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@ECHO OFF
@echo off
@setlocal

rem
Expand All @@ -7,14 +7,13 @@ rem

set BASEDIR=%~dp0

call "C:\Qt\6.8.0\msvc2022_64\bin\qtenv2.bat"
call "C:\Qt\6.7.3\msvc2022_64\bin\qtenv2.bat"
rem call "C:\Qt\6.5.3\msvc2019_64\bin\qtenv2.bat"
rem call "C:\Qt\5.13.0\msvc2017\bin\qtenv2.bat"

set ARCH=amd64
set VSWHERE="%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
set VCVARSBAT=""
set VSVER=2022 2019 2017
set VSVER=2019
set PATH=C:\Qt\Tools\CMake_64\bin;%PATH%

if exist %VSWHERE% (
Expand All @@ -34,7 +33,7 @@ if exist %VCVARSBAT% (
echo %VCVARSBAT% %ARCH%
call %VCVARSBAT% %ARCH%
) else (
echo Error! Compiler not found.
echo Error! Visual Studio not found.
pause
exit
)
Expand Down
Loading