-
Notifications
You must be signed in to change notification settings - Fork 20
61 lines (55 loc) · 1.82 KB
/
build_linux.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
# This workflow will build and test gbsplay in various configurations on Linux.
name: Linux Build
on:
push:
pull_request:
types: [opened]
schedule:
- cron: '23 4 5 * *'
jobs:
build-linux:
name: Build and test on Linux
runs-on: ubuntu-latest
strategy:
matrix:
compiler: [gcc, clang]
flags: ['', --disable-i18n --disable-zlib --prefix=/tmp/gbsplay, --with-xgbsplay --enable-sharedlibgbs]
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libasound2-dev libpulse-dev libaudio-dev libxcb1-dev libxcb-icccm4-dev libcairo2-dev libsdl2-dev libpipewire-0.3-dev
- name: Install valgrind
if: ${{ matrix.flags == '' }}
run: |
sudo apt-get --no-install-recommends install valgrind
- name: Build and test
env:
CC: ${{ matrix.compiler }}
CONFIGURE_FLAGS: ${{ matrix.flags }} --enable-verbosebuild
CFLAGS: -Wformat -Werror=format-security -Wall -pedantic
run: |
make
- name: Check activated plugouts
run: |
./check_plugouts.sh alsa pulse devdsp nas sdl pipewire
- name: Check WAV plugout
run: |
./check_plugout_wav.sh
- name: Check build flags
run: |
./check_buildflags.sh ${{ matrix.flags }} --enable-verbosebuild
- name: Check with valgrind
if: ${{ matrix.flags == '' }}
run: |
make test TEST_WRAPPER="valgrind --error-exitcode=1"
- name: Check install and uninstall targets
run: |
# add the sudo here and not inside the script
# to prevent a mess when somebody runs the script locally
sudo ./check_install_uninstall.sh
- name: Dump configure on error
if: ${{ failure() }}
run: |
bash -x -v configure && cat config.err