github: add meson build target

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2021-09-16 13:25:07 +02:00
parent aa57994f73
commit 80ed8688d1
3 changed files with 23 additions and 0 deletions

View File

@ -17,6 +17,7 @@ PACKAGES=(
ntp
socat
asciidoctor
meson
)
PACKAGES_OPTIONAL=(

View File

@ -51,6 +51,12 @@ for phase in "${PHASES[@]}"; do
INSTALL)
make install DESTDIR=/tmp/dest
;;
MESONCONF)
meson build
;;
MESONBUILD)
ninja -C build
;;
CHECK)
if [[ "$SANITIZE" == "yes" ]]; then
# All the following black magic is to make test/eject/umount work, since

View File

@ -37,6 +37,22 @@ jobs:
run: sudo -E .github/workflows/cibuild.sh CHECK
- name: Make install
run: .github/workflows/cibuild.sh INSTALL
meson:
needs: build
runs-on: ubuntu-latest
env:
COMPILER: gcc
COMPILER_VERSION: 10
SANITIZE: no
steps:
- name: Repository checkout
uses: actions/checkout@v1
- name: Ubuntu setup
run: sudo -E .github/workflows/cibuild-setup-ubuntu.sh
- name: Meson configure
run: .github/workflows/cibuild.sh MESONCONF
- name: Meson build
run: .github/workflows/cibuild.sh MESONBUILD
distcheck:
needs: build
runs-on: ubuntu-latest