-
Notifications
You must be signed in to change notification settings - Fork 122
70 lines (58 loc) · 1.8 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Windows build
on:
push:
branches:
- master
- next
- 'next*'
tags:
- 'v*'
jobs:
qtbuild:
name: Build with Qt
runs-on: windows-latest
steps:
- name: Install Qt
uses: jurplel/install-qt-action@v4
with:
version: '6.7.2'
modules: 'qtcharts qtmultimedia'
arch: 'win64_mingw'
- name: Checkout
uses: actions/checkout@v3
- run: git fetch --prune --unshallow --tags
- name: Preapre build
shell: cmd
run: |
echo Create datetime
for /f "tokens=2 delims==" %%G in ('wmic os get localdatetime /value') do set datetime=%%G
set year=%datetime:~0,4%
set month=%datetime:~4,2%
set day=%datetime:~6,2%
set current_date=%year%%month%%day%
echo Create git hash
for /f %%i in ('git -C %GITHUB_WORKSPACE% rev-parse --short HEAD') do set git_hash=%%i
echo Create version
set file_version=%current_date%_%git_hash%
echo Create a build directory
cd ..\
md build
REM Get all headers and DLLs for the build
git clone https://github.com/AlbrechtL/welle.io-win-libs.git
- name: Display environment variables
run: |
Get-ChildItem Env:
- name: Build
id: build
shell: cmd
run: |
cd build
qmake ..\welle-io
mingw32-make
- name: Archive artifacts (welle.io build dir)
if: always() && steps.build.outcome == 'failure'
uses: actions/upload-artifact@v3
with:
name: welle.io build dir
path: build/*
if-no-files-found: error