-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (42 loc) · 1.44 KB
/
check-liquidsoap.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
name: Check Liquidsoap scripts for correctness
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
check-liquidsoap:
runs-on: ubuntu-latest
strategy:
matrix:
liquidsoap-version: ["1.4.3"]
steps:
- uses: actions/checkout@v4
- name: Set up OCaml
uses: ocaml/setup-ocaml@v2
with:
ocaml-compiler: "4.14.0"
- name: Install Liquidsoap
run: |
opam pin -y --no-action liquidsoap ${{ matrix.liquidsoap-version }}
sudo apt update -y
sudo apt -f install libavcodec-dev libavdevice-dev libavformat-dev libavutil-dev libfdk-aac-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libjack-dev libmp3lame-dev libogg-dev libopus-dev libsamplerate0-dev libswresample-dev libswscale-dev libtag1-dev libunwind-dev libvorbis-dev
opam install -y ffmpeg opus bjack cry fdkaac gstreamer lame samplerate taglib ssl vorbis liquidsoap
- name: Set up config files
run: |
pushd conf
for f in *.dist; do
cp $f ${f%.dist}
done
popd
- name: Check scripts
run: |
$(opam env)
set +e
exit=0
for f in *.liq; do
liquidsoap --check $f
exit=$((exit + $?))
done
# failures on 2.0 are allowed (for now)
${{ startsWith(matrix.liquidsoap-version, '2') && 'exit 0' || 'echo $exit' }}