Switch build from autotools to meson #29
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
target: ["CC=clang CXX=clang++", "CC=gcc CXX=g++"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install build dependencies | |
run: | | |
sudo apt update | |
sudo apt -y install ladspa-sdk libasound2-dev libatk1.0-dev libaudiofile-dev \ | |
libcap2-dev libglib2.0-dev libgtk-3-dev libice-dev \ | |
libjack-dev liblrdf0-dev libmad0-dev libpango1.0-dev \ | |
libpulse-dev libsm-dev libvorbis-dev libx11-dev libxext-dev \ | |
libxi-dev libxml2-dev mpg321 sox vorbis-tools yelp-tools zlib1g-dev | |
- name: Run Compile Test using ${{ matrix.target }} | |
run: | | |
./autogen.sh | |
./configure ${{ matrix.target }} | |
make -j $(nproc) | |
- name: Run make indent | |
if: matrix.target == 'CC=clang CXX=clang++' | |
run: > | |
make indent && | |
STATUS=$(git status --porcelain) && | |
if [ ! -z "$STATUS" ]; then | |
echo "FAIL: some files are not correctly formatted."; | |
echo "$STATUS" | |
git diff | |
echo "FAIL: please run 'make indent'"; | |
exit 1; | |
fi |