-
Notifications
You must be signed in to change notification settings - Fork 2
112 lines (110 loc) · 3.92 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
name: Build
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
windows_build:
name: Windows Build
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Compile
run: |
mkdir build
cmake -S . -B build -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -Wno-dev
cmake --build build --config Release --target package
- name: 'Upload Windows Installer'
uses: actions/upload-artifact@v4
with:
name: 'Windows Installer'
path: build/_CPack_Packages/win64/NSIS/*.exe
mac_build:
name: MacOS Build
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Compile
run: |
mkdir build
cmake -S . -B build -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -Wno-dev
cmake --build build --config Release --target package
- name: 'Upload OSX Installer'
uses: actions/upload-artifact@v4
with:
name: 'OSX dmg package'
path: build/_CPack_Packages/OSX/DragNDrop/*.dmg
ubuntu_20_04_build:
name: Ubuntu 20.04 Build
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Compile
run: |
mkdir build
sudo apt update
sudo apt install libasound2-dev libjack-jackd2-dev ladspa-sdk libcurl4-openssl-dev libfreetype6-dev libx11-dev libxcomposite-dev libxcursor-dev libxcursor-dev libxext-dev libxinerama-dev libxrandr-dev libxrender-dev libwebkit2gtk-4.0-dev libglu1-mesa-dev mesa-common-dev
cmake -S . -B build -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -Wno-dev
cmake --build build --config Release
cd build
cpack -G DEB
- name: 'Upload Ubuntu 20.04 deb package'
uses: actions/upload-artifact@v4
with:
name: 'Ubuntu 20.04 deb package'
path: build/_CPack_Packages/Linux/DEB/*.deb
ubuntu_22_04_build:
name: Ubuntu 22.04 Build
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Compile
run: |
mkdir build
sudo apt update
sudo apt install libasound2-dev libjack-jackd2-dev ladspa-sdk libcurl4-openssl-dev libfreetype6-dev libx11-dev libxcomposite-dev libxcursor-dev libxcursor-dev libxext-dev libxinerama-dev libxrandr-dev libxrender-dev libwebkit2gtk-4.0-dev libglu1-mesa-dev mesa-common-dev
cmake -S . -B build -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -Wno-dev
cmake --build build --config Release
cd build
cpack -G DEB
- name: 'Upload Ubuntu 22.04 deb package'
uses: actions/upload-artifact@v4
with:
name: 'Ubuntu 22.04 deb package'
path: build/_CPack_Packages/Linux/DEB/*.deb
ubuntu_24_04_build:
name: Ubuntu 24.04 Build
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Compile
run: |
mkdir build
sudo apt update
sudo apt install libasound2-dev libjack-jackd2-dev ladspa-sdk libcurl4-openssl-dev libfreetype6-dev libx11-dev libxcomposite-dev libxcursor-dev libxcursor-dev libxext-dev libxinerama-dev libxrandr-dev libxrender-dev libglu1-mesa-dev mesa-common-dev git cmake
cmake -S . -B build -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -Wno-dev
cmake --build build --config Release
cd build
cpack -G DEB
- name: 'Upload Ubuntu 24.04 deb package'
uses: actions/upload-artifact@v4
with:
name: 'Ubuntu 24.04 deb package'
path: build/_CPack_Packages/Linux/DEB/*.deb