-
Notifications
You must be signed in to change notification settings - Fork 0
176 lines (147 loc) · 5.66 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
name: build
on: [push]
jobs:
build-macos:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Import Code-Signing Certificates
uses: figleafteam/import-codesign-certs@v2
with:
p12-file-base64: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }}
p12-password: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_PASSWORD }}
# Building the project
- name: Building Ofelia
run: ${{github.workspace}}/Resources/build.sh
# Sign and notarise to make sure it works with gatekeeper
- name: Sign and notarise
run: ${{github.workspace}}/.github/scripts/macOS-sign-and-notarise.sh
working-directory: ${{github.workspace}}
env:
AC_USERNAME: ${{ secrets.AC_USERNAME }}
AC_PASSWORD: ${{ secrets.AC_PASSWORD }}
# Upload executable binaries to GitHub
- name: Uploading artifacts
uses: actions/upload-artifact@v2
with:
name: plugdata-ofelia-macos
path: ${{github.workspace}}/ofelia.zip
build-ubuntu-old:
runs-on: ubuntu-20.04
steps:
- name: Update git
run: sudo apt update && sudo apt install -y git
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Installing openFrameworks dependencies
run: ${{github.workspace}}/Resources/scripts/linux-install-libs.sh
# Building the project
- name: Building Ofelia
run: ${{github.workspace}}/Resources/build.sh
# Run script that copies all non-system dynamic libraries, and copies them into a dir that gets added as rpath
# This should ensure that ofelia runs on any Linux distro, it's basically a flatpak
- name: Packaging dependencies
run: ${{github.workspace}}/Resources/scripts/linux-bundle-libs.sh
# Upload executable binaries to GitHub
- name: Uploading artifacts
uses: actions/upload-artifact@v2
with:
name: plugdata-ofelia-linux-old
path: ${{github.workspace}}/ofelia
build-ubuntu-new:
runs-on: ubuntu-22.04
steps:
- name: Update git
run: sudo apt update && sudo apt install -y git
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Installing openFrameworks dependencies
run: ${{github.workspace}}/Resources/scripts/linux-install-libs.sh
# Building the project
- name: Building Ofelia
run: ${{github.workspace}}/Resources/build.sh
# Run script that copies all non-system dynamic libraries, and copies them into a dir that gets added as rpath
# This should ensure that ofelia runs on any Linux distro, it's basically a flatpak
- name: Packaging dependencies
run: ${{github.workspace}}/Resources/scripts/linux-bundle-libs.sh
# Upload executable binaries to GitHub
- name: Uploading artifacts
uses: actions/upload-artifact@v2
with:
name: plugdata-ofelia-linux-new
path: ${{github.workspace}}/ofelia
build-windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: recursive
- name: Install wget
run: |
choco install wget -y
- uses: msys2/setup-msys2@v2
with:
update: true
install: >-
git
unzip
rsync
wget
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1.1
- name: Clone openFrameworks
working-directory: ${{github.workspace}}
shell: bash
run: ./.github/scripts/clone-openFrameworks.sh
- name: Build
working-directory: ${{github.workspace}}
run: ${{github.workspace}}/Resources/build.bat
# Upload executable binaries to GitHub
- name: Uploading artifacts
uses: actions/upload-artifact@v2
with:
name: plugdata-ofelia-windows
path: ${{github.workspace}}/ofelia
# build-ubuntu-armv7:
# runs-on: ubuntu-20.04
# name: build-ubuntu-armv7
# steps:
#
# - name: Checkout
# uses: actions/checkout@v2
# with:
# submodules: recursive
#
# - uses: actions/checkout@v3
# - uses: uraimo/run-on-arch-action@v2
# name: Run commands
# id: runcmd
# with:
# arch: armv7
# distro: ubuntu20.04
#
# # Mount the artifacts directory as /artifacts in the container
# dockerRunArgs: |
# --volume "${PWD}:/plugdata-ofelia"
#
# # Set an output parameter `uname` for use in subsequent steps
# run: |
# apt update && DEBIAN_FRONTEND=noninteractive TZ="Europe/Amsterdam" apt install -y apt-utils sudo libunwind-dev clang git build-essential pkg-config wget rsync libassimp-dev libgstreamer1.0-0 gstreamer1.0-plugins-base libgstreamer-plugins-base1.0-dev gstreamer1.0-plugins-bad gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly libfreetype6-dev libx11-dev libxcomposite-dev libxcursor-dev libxcursor-dev libxext-dev libxinerama-dev libxrandr-dev libxrender-dev libglu1-mesa-dev mesa-common-dev libcairo-dev lsb-release
# cd /plugdata-ofelia
# ./.github/scripts/install-libs.sh
# ./build.sh
#
# # Upload executable binaries to GitHub
# - name: Uploading artifacts
# uses: actions/upload-artifact@v2
# with:
# name: plugdata-ofelia-linux-arm
# path: ./ofelia