-
-
Notifications
You must be signed in to change notification settings - Fork 27
75 lines (62 loc) · 2.04 KB
/
build.yaml
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
75
name: Build
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
BUILD_TYPE: Release
jobs:
build_ubuntu_20:
strategy:
matrix:
QT_VERSION: [5.12.8, 6.5.0]
runs-on: ubuntu-20.04
steps:
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{matrix.QT_VERSION}}
setup-python: 'false'
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Configure
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --parallel 4 --config ${{env.BUILD_TYPE}}
build_windows:
strategy:
matrix:
QT_VERSION: [5.12.8, 6.5.0]
runs-on: windows-2022
steps:
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{matrix.QT_VERSION}}
setup-python: 'false'
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Configure
run: |
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -G"Visual Studio 17 2022"
- name: Build
run:
cmake --build ${{github.workspace}}/build --parallel 4 --target ALL_BUILD --config ${{env.BUILD_TYPE}}
- name: Deploy app
run: |
mkdir nedit-ng-win64-qt${{matrix.QT_VERSION}}
cp ${{github.workspace}}/build/${{env.BUILD_TYPE}}/nedit-ng.exe nedit-ng-win64-qt${{matrix.QT_VERSION}}/
cp ${{github.workspace}}/build/${{env.BUILD_TYPE}}/nc-ng.exe nedit-ng-win64-qt${{matrix.QT_VERSION}}/
windeployqt --release nedit-ng-win64-qt${{matrix.QT_VERSION}}/nedit-ng.exe
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: nedit-ng-win64-qt${{matrix.QT_VERSION}}
path: nedit-ng-win64-qt${{matrix.QT_VERSION}}/