Skip to content

Commit

Permalink
Switching the CI workflow to meson
Browse files Browse the repository at this point in the history
  • Loading branch information
axkg committed Apr 4, 2024
1 parent edab53d commit 91ffd2a
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
target: ["CC=clang CXX=clang++", "CC=gcc CXX=g++"]
Expand All @@ -18,21 +18,12 @@ jobs:
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 }}
libxi-dev libxml2-dev mpg321 sox vorbis-tools yelp-tools zlib1g-dev \
xxd meson ninja-build
- name: Run compile test using ${{ matrix.target }}
run: |
./autogen.sh
./configure ${{ matrix.target }}
make -j $(nproc)
- name: Run make indent
${{ matrix.target }} meson setup build
meson compile -C build
- name: Run built-in tests
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
run: meson test -C build

0 comments on commit 91ffd2a

Please sign in to comment.