-
Notifications
You must be signed in to change notification settings - Fork 15
51 lines (48 loc) · 1.3 KB
/
deploy-windows.yml
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
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
jobs:
build:
runs-on: windows-latest
steps:
- name: Cache Qt
id: cache-qt
uses: actions/cache@v1 # not v2!
with:
path: ../Qt
key: ${{ runner.os }}-QtCache
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
cached: ${{ steps.cache-qt.outputs.cache-hit }}
- uses: lukka/get-cmake@latest
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Install jinja2
shell: bash
run: python -m pip install jinja2
- name: Install zip
shell: bash
run: choco install -y zip
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: CMake
shell: bash
run: |
mkdir build
cd build
cmake -DBUILD_TESTING=OFF ..
- name: Build
run: msbuild build\dxfplotter.sln /property:Configuration=Release
- name: Deploy Qt
shell: bash
run: ci/deploywindows.sh
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: "dxfplotter*.zip"