Skip to content

Commit d2e2f2d

Browse files
committed
wip
1 parent df56d81 commit d2e2f2d

File tree

3 files changed

+19
-16
lines changed

3 files changed

+19
-16
lines changed

.github/workflows/deploy-windows.yml

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,43 +4,44 @@ on:
44
# Sequence of patterns matched against refs/tags
55
tags:
66
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
7-
7+
branches:
8+
- "**"
9+
810
jobs:
911
build:
1012
runs-on: windows-latest
1113
steps:
1214
- name: Cache Qt
1315
id: cache-qt
14-
uses: actions/cache@v1 # not v2!
16+
uses: actions/cache@v4
1517
with:
1618
path: ../Qt
17-
key: ${{ runner.os }}-QtCache
18-
19+
key: ${{ runner.os }}-QtCache
20+
- name: Install python packages
21+
shell: bash
22+
run: python -m pip install jinja2 aqtinstall
1923
- name: Install Qt
20-
uses: jurplel/install-qt-action@v2
21-
with:
22-
cached: ${{ steps.cache-qt.outputs.cache-hit }}
23-
- uses: lukka/get-cmake@latest
24-
- name: Add msbuild to PATH
25-
uses: microsoft/[email protected]
26-
- name: Install jinja2
2724
shell: bash
28-
run: python -m pip install jinja2
25+
run: aqt install-qt -O ../Qt windows desktop 6.8.2 win64_mingw -m qt3d qtshadertools
2926
- name: Install zip
3027
shell: bash
3128
run: choco install -y zip
29+
- name: Install ortools
30+
shell: bash
31+
run: |
32+
C:/msys64/usr/bin/wget.exe https://github.com/google/or-tools/releases/download/v9.10/or-tools_x64_VisualStudio2022_cpp_v9.10.4067.zip
33+
unzip or-tools_x64_VisualStudio2022_cpp_v9.10.4067.zip -d ../
3234
- name: Checkout
3335
uses: actions/checkout@v2
3436
with:
3537
submodules: true
38+
fetch-depth: 0
3639
- name: CMake
3740
shell: bash
3841
run: |
39-
mkdir build
40-
cd build
41-
cmake -DBUILD_TESTING=OFF ..
42+
cmake -B build -DBUILD_TESTING=OFF -G Ninja -DQt6_DIR=../Qt/6.8.2/mingw_64/lib/cmake/Qt6 -DCMAKE_PREFIX_PATH=../or-tools_x64_VisualStudio2022_cpp_v9.10.4067
4243
- name: Build
43-
run: msbuild build\dxfplotter.sln /property:Configuration=Release
44+
run: cmake --build build --config Release
4445
- name: Deploy Qt
4546
shell: bash
4647
run: ci/deploywindows.sh

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ find_package(Qt6 COMPONENTS REQUIRED
5656

5757
qt_standard_project_setup()
5858

59+
add_definitions(${Qt6Core_DEFINITIONS})
60+
5961
set(INCLUDE_DIRS
6062
src
6163
thirdparty

test/a.out

-20.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)