-
Notifications
You must be signed in to change notification settings - Fork 1
74 lines (62 loc) · 1.6 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
on:
workflow_dispatch:
push:
branches: ["**"]
name: Build
jobs:
build-linux:
runs-on: ubuntu-latest
container: greyltc/archlinux-aur
strategy:
fail-fast: false
matrix:
language: ["cpp"]
steps:
- name: 📦 Checkout
uses: actions/checkout@v3
- name: ⬇️ Install build dependencies
run: "pacman --noconfirm -Syu base-devel cmake gcc git make qt5-base qt5-webchannel qt5-webengine yarn gtk3"
- name: 🖼️ Build Frontend
run: >
cd interface
&& yarn
&& yarn build
- name: 🛠️ Compile
run: >
mkdir build && cd build
&& cmake ..
&& cmake --build . --config Release
- name: 🆙 Upload Artifact
uses: actions/upload-artifact@v3
with:
name: solar2d-viewer.linux
path: |
build/
build-windows:
runs-on: windows-2022
strategy:
fail-fast: false
matrix:
language: ["cpp"]
steps:
- name: 📦 Checkout
uses: actions/checkout@v3
- name: 🏗️ Setup Node
uses: actions/setup-node@v3
- name: 🖼️ Build Frontend
run: >
cd interface
&& rm yarn.lock
&& yarn
&& yarn build
- name: 🛠️ Compile
run: >
mkdir build && cd build
&& cmake ..
&& cmake --build . --config Release
- name: 🆙 Upload Artifact
uses: actions/upload-artifact@v3
with:
name: solar2d-viewer.windows
path: |
build/Release