-
Notifications
You must be signed in to change notification settings - Fork 53
171 lines (168 loc) · 5.1 KB
/
pd-externals.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
name: Build Pd Externals
on: [push, pull_request]
jobs:
linux:
runs-on: ubuntu-latest
steps:
- name: install Ubuntu packages
run: |
PACKAGES=(
libfftw3-dev
libmysofa-dev
puredata-dev
autogen
)
sudo apt-get install --no-install-recommends ${PACKAGES[@]}
- name: checkout ssr
uses: actions/checkout@v3
with:
submodules: true
path: ssr
- name: Build dependencies
working-directory: ssr/ci
run: |
sudo chown -R $(whoami):admin /usr/local
./build-small-libsndfile.sh
./build-small-libxml2.sh
sudo ldconfig
- name: build externals
working-directory: ssr/flext
run: |
make install DESTDIR=build PDLIBDIR=
- name: Fix pd_linux dependencies
working-directory: ssr/flext
run: |
sh pd-lib-builder-iem-ci/localdeps/localdeps.linux.sh build/ssr_*.pd_linux
- name: upload Linux externals
uses: actions/upload-artifact@v3
with:
name: linux-externals
path: ssr/flext/build/*
macos:
runs-on: macos-latest
steps:
- name: install macOS packages
run: |
PACKAGES=(
autogen
automake
fftw
SoundScapeRenderer/ssr/libmysofa
pkg-config
)
brew install ${PACKAGES[@]}
brew install --cask pd
- name: checkout ssr
uses: actions/checkout@v3
with:
submodules: true
path: ssr
- name: Build dependencies
working-directory: ssr/ci
run: |
./build-small-libsndfile.sh
- name: build externals
working-directory: ssr/flext
run: |
make install DESTDIR=build PDLIBDIR=
- name: Fix pd_darwin dependencies
working-directory: ssr/flext
run: |
sh pd-lib-builder-iem-ci/localdeps/localdeps.macos.sh build/ssr_*.pd_darwin
- name: upload macOS externals
uses: actions/upload-artifact@v3
with:
name: macos-externals
path: ssr/flext/build/*
windows:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- name: Install MSYS2
uses: msys2/setup-msys2@v2
with:
release: false
path-type: inherit
install: >-
unzip
autogen
autotools
mingw-w64-x86_64-gcc
mingw-w64-x86_64-fftw
mingw-w64-x86_64-libmysofa
mingw-w64-x86_64-ntldd-git
- name: Install Pd
run: |
wget -q -O Pd.zip http://msp.ucsd.edu/Software/pd-0.51-3.msw.zip
rm -rf "${PROGRAMFILES}/pd" && mkdir -p "${PROGRAMFILES}/pd"
unzip -q Pd.zip -d "${PROGRAMFILES}/pd"
mv -v "${PROGRAMFILES}/pd"/*/* "${PROGRAMFILES}/pd"
rm -f Pd.zip
export PD="${PROGRAMFILES}/pd/bin/pd.com"
- name: checkout ssr
uses: actions/checkout@v3
with:
submodules: true
path: ssr
- name: Build dependencies
working-directory: ssr/ci
run: |
# https://github.com/msys2/MINGW-packages/issues/5803
export LIBS=-lssp
./build-small-libsndfile.sh
./build-small-libxml2.sh
- name: build externals
working-directory: ssr/flext
run: |
make install DESTDIR=build PDLIBDIR= extension=m_amd64
- name: Fix dll dependencies
working-directory: ssr/flext
run: |
sh pd-lib-builder-iem-ci/localdeps/localdeps.win.sh build/ssr_*.m_amd64
- name: upload Windows externals
uses: actions/upload-artifact@v3
with:
name: windows-externals
path: ssr/flext/build/*
deken-package:
# Deken is not available on 22.04,
# see https://github.com/pure-data/deken/issues/260
runs-on: ubuntu-20.04
needs: [linux, macos, windows]
steps:
- name: Clone Git repository
uses: actions/checkout@v3
with:
# check out all tags to get proper version in Deken package
fetch-depth: 0
- name: Retrieve Linux externals
uses: actions/download-artifact@v3
with:
name: linux-externals
path: ssr
- name: Retrieve macOS external
uses: actions/download-artifact@v3
with:
name: macos-externals
path: ssr
- name: Retrieve Windows external
uses: actions/download-artifact@v3
with:
name: windows-externals
path: ssr
- name: Install deken
run: |
sudo apt-get install --no-install-recommends deken
# work-arounds from https://github.com/pure-data/deken/issues/247:
mkdir ~/.deken
python3 -m pip install hy==0.19
- name: Run deken
run: |
deken package -v $(git describe --tags --always) --objects flext/objects.txt ssr
- name: Upload deken package
uses: actions/upload-artifact@v3
with:
name: Deken package
path: "*.dek*"