Skip to content

release v0.0.96

release v0.0.96 #649

Workflow file for this run

# 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