-
Notifications
You must be signed in to change notification settings - Fork 20
53 lines (50 loc) · 1.64 KB
/
Copy pathdeploy-windows.yml
File metadata and controls
53 lines (50 loc) · 1.64 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
on:
workflow_dispatch:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
env:
Qt_ROOT: ../Qt/6.8.2/msvc2022_64/
jobs:
build:
runs-on: windows-latest
steps:
- name: Cache Qt
id: cache-qt
uses: actions/cache@v4
with:
path: ../Qt
key: ${{ runner.os }}-QtCache
- name: Install python packages
shell: bash
run: python -m pip install jinja2 aqtinstall
- name: Install Qt
shell: bash
run: aqt install-qt -O ../Qt windows desktop 6.8.2 win64_msvc2022_64 -m qt3d qtshadertools
- name: Install zip
shell: bash
run: choco install -y zip
- name: Install ortools
shell: bash
run: |
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
unzip or-tools_x64_VisualStudio2022_cpp_v9.10.4067.zip -d ../
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0
- name: CMake
shell: bash
run: |
cmake -B build -DBUILD_TESTING=OFF -DWITH_ORTOOLS=ON -DQt6_DIR=${Qt_ROOT}/lib/cmake/Qt6 -DCMAKE_PREFIX_PATH=../or-tools_x64_VisualStudio2022_cpp_v9.10.4067
- name: Build
run: cmake --build build --config Release
- name: Deploy Qt
shell: bash
run: PATH=$PATH:${Qt_ROOT}/bin ci/deploywindows.sh
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: "dxfplotter*.zip"