-
Notifications
You must be signed in to change notification settings - Fork 2
196 lines (171 loc) · 3.82 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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
name: build
on: push
jobs:
ubuntu:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04]
runs-on: ${{ matrix.os }}
steps:
- name: checkout
uses: actions/checkout@v4
- name: install dependencies
run: >
sudo apt-get update &&
sudo apt-get install
build-essential
pkg-config
libncurses-dev
libavcodec-dev libavformat-dev libavutil-dev
libflac-dev
libid3tag0-dev libmad0-dev
libmpg123-dev
libopusfile-dev
libsndfile1-dev
libvorbis-dev
libwavpack-dev
libasound2-dev
libao-dev
portaudio19-dev
libpulse-dev
libsndio-dev
- name: configure
run: ./configure
- name: build
run: make
- name: install
run: sudo make install
macos:
strategy:
fail-fast: false
matrix:
os: [macos-12, macos-13, macos-14]
runs-on: ${{ matrix.os }}
steps:
- name: checkout
uses: actions/checkout@v4
- name: install dependencies
run: >
brew update &&
brew upgrade &&
brew install
pkg-config
faad2 mp4v2
ffmpeg
flac
libid3tag mad
mpg123
opusfile
libsndfile
libvorbis
wavpack
libao
portaudio
pulseaudio
|| true
- name: configure
run: ./configure
- name: build
run: make
- name: install
run: sudo make install
dragonfly:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: run vm
uses: vmactions/dragonflybsd-vm@v1
with:
usesh: true
prepare: >
pkg install -y
pkgconf
faad2 mp4v2
ffmpeg
flac
libid3tag libmad
mpg123
opusfile
libsndfile
libvorbis
wavpack
libao
portaudio
sndio
run: |
uname -a
sed -i '' s,curses.h,ncurses/ncurses.h, compat.h configure screen.c
sed -i '' s,-lcurses,-lncurses, configure
CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib \
./configure
make
make install
freebsd:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: run vm
uses: vmactions/freebsd-vm@v1
with:
usesh: true
prepare: >
pkg install -y
pkgconf
faad2 mp4v2
ffmpeg
flac
libid3tag libmad
mpg123
opusfile
libsndfile
libvorbis
wavpack
libao
portaudio
pulseaudio
sndio
run: |
uname -a
CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib \
./configure
make
make install
netbsd:
strategy:
fail-fast: false
matrix:
ffmpeg: [ffmpeg3, ffmpeg4, ffmpeg5, ffmpeg6, ffmpeg7]
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: run vm
uses: vmactions/netbsd-vm@v1
with:
prepare: >
pkg_add
pkg-config
faad2 mp4v2
flac
libid3tag libmad
mpg123
opusfile
libsndfile
libvorbis
wavpack
alsa-lib
libao
portaudio
pulseaudio
${{ matrix.ffmpeg }}
run: |
uname -a
CPPFLAGS='-I/usr/pkg/include -I/usr/pkg/include/faad2' \
LDFLAGS='-L/usr/pkg/lib -Wl,-R/usr/pkg/lib' \
PKG_CONFIG_PATH=/usr/pkg/lib/${{ matrix.ffmpeg }}/pkgconfig \
./configure
make
make install