-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (61 loc) · 1.92 KB
/
windows-build.yml
File metadata and controls
74 lines (61 loc) · 1.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Windows Build
on:
push:
tags:
- '*'
workflow_dispatch:
jobs:
test-build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Qt
uses: jurplel/install-qt-action@v4
with:
version: '6.9.*'
arch: 'win64_msvc2022_64'
modules: qtcharts
- name: Setup Visual Studio
uses: microsoft/setup-msbuild@v1.1
- name: Setup CMake
uses: jwlawson/actions-setup-cmake@v1.13
with:
cmake-version: '3.25.0'
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Configure CMake
run: |
cmake -B build -S . -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="${{ env.QT_ROOT_DIR }};${{ env.QTDIR }}"
- name: Build project
run: |
cmake --build build --config Release --parallel
- name: Verify executable
run: |
if (Test-Path "build\Release\BasicSpanner.exe") {
Write-Host "Executable created successfully"
Get-ChildItem "build\Release\BasicSpanner.exe" | Select-Object Name, Length
} else {
Write-Host "Executable not found"
exit 1
}
- name: Test basic functionality
run: |
Write-Host "Testing basic functionality..."
if (Test-Path "build\Release\verify_basic_network.exe") {
Write-Host "Verification executable found"
} else {
Write-Host "Verification executable not found (optional)"
}
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: BasicSpanner-Windows-${{ github.sha }}
path: build/Release/
retention-days: 7