1
1
name : windows-builds
2
2
3
- # Trigger on push to any branch and manual runs
4
3
on :
5
4
push :
6
5
workflow_dispatch :
18
17
- name : 📦 Checkout source code
19
18
uses : actions/checkout@v4
20
19
with :
21
- fetch-depth : 0 # Fetch full history for tags if needed
20
+ fetch-depth : 0
22
21
23
22
- name : ⚙️ Install Ninja build system
24
23
run : choco install ninja --no-progress
@@ -34,32 +33,25 @@ jobs:
34
33
dir : ${{ env.QT_DIR }}
35
34
setup-python : false
36
35
37
- - name : 🛠️ Configure CMake ( Ninja + MSVC)
38
- shell : pwsh
36
+ - name : 🛠️ Configure CMake with Ninja + MSVC
37
+ shell : cmd
39
38
run : |
40
- # Initialize MSVC environment variables for 64-bit architecture
41
- & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" amd64
42
-
43
- # Run cmake with Ninja generator and MSVC toolchain
44
- cmake -S . -B build -G Ninja -A x64 `
45
- -DCMAKE_PREFIX_PATH="${{ env.QT_DIR }}\Qt\${{ env.QT_VERSION }}\msvc2019_64" `
46
- -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}\install" `
39
+ "C:\Program Files (x86)\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64 && ^
40
+ cmake -S . -B build -G Ninja -A x64 ^
41
+ -DCMAKE_PREFIX_PATH="${{ env.QT_DIR }}\Qt\${{ env.QT_VERSION }}\msvc2019_64" ^
42
+ -DCMAKE_INSTALL_PREFIX="${{ github.workspace }}\install" ^
47
43
-DCMAKE_BUILD_TYPE=Release
48
44
49
45
- name : 🔨 Build with Ninja + MSVC
50
- shell : pwsh
46
+ shell : cmd
51
47
run : |
52
- # Initialize MSVC environment again for build step
53
- & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" amd64
54
-
48
+ "C:\Program Files (x86)\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64 && ^
55
49
cmake --build build
56
50
57
51
- name : 📦 Install built files
58
- shell : pwsh
52
+ shell : cmd
59
53
run : |
60
- # Initialize MSVC environment again for install step
61
- & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build\vcvarsall.bat" amd64
62
-
54
+ "C:\Program Files (x86)\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" amd64 && ^
63
55
cmake --install build
64
56
65
57
build_windows_mingw :
0 commit comments