-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (71 loc) · 1.71 KB
/
build.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# Inspired from https://github.com/iTrooz/Qt6-HelloWorld/blob/main/.github/workflows/build.yml
name: Build
on:
push:
branches: ["*"]
pull_request:
workflow_dispatch:
jobs:
macos:
runs-on: macos-12
name: MacOS
steps:
- name: 🧰 Checkout
uses: actions/checkout@v3
- name: install Qt 6
run: brew install qt@6
- name: Build project
run: |
cmake -B build
cmake --build build -j 4
- name: Upload binary
uses: actions/upload-artifact@v3
with:
if-no-files-found: error
name: MacOS binary
path: |
build/NBTEDITOR
windows:
runs-on: windows-2022
name: Windows
defaults:
run:
shell: msys2 {0}
steps:
- name: 🧰 Checkout
uses: actions/checkout@v3
- name: Install dependencies
uses: msys2/setup-msys2@v2
with:
install: zlib-devel
pacboy: >-
cmake:p
qt6:p
gcc:p
- name: Build project
run: |
cmake -B build -G "Ninja"
cmake --build build -j 4
- name: Upload binary
uses: actions/upload-artifact@v3
with:
if-no-files-found: error
name: Windows binary
path: |
build/nbteditor.exe
linux:
runs-on: ubuntu-22.04
name: Linux
steps:
- name: 🧰 Checkout
uses: actions/checkout@v3
- name: Build project using docker
run: |
docker buildx build . -f dist/linux.Dockerfile --progress=plain --output out --build-arg "BUILD_TYPE=Release"
- name: Upload binary
uses: actions/upload-artifact@v3
with:
if-no-files-found: error
name: Linux binary
path: |
out/nbteditor