github: add workflow for Meson builds

Signed-off-by: Brandon Maier <brandon.maier@collins.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
Brandon Maier 2023-09-02 10:19:31 -05:00 committed by David Gibson
parent a3dc9f006a
commit 6c5e189fb9
2 changed files with 33 additions and 5 deletions

View file

@ -9,7 +9,7 @@ name: Build test
- main
jobs:
build:
build-make:
runs-on: ubuntu-latest
strategy:
@ -35,3 +35,31 @@ jobs:
- name: Run check
run: |
make check
build-meson:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [ "alpine", "archlinux", "fedora", "ubuntu" ]
container:
image: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Dependencies
run: |
./scripts/install-deps.sh
- name: Setup
run: meson setup build
- name: Build
run: meson compile -C build
- name: Run check
run: meson test -C build