2021-01-22 08:03:09 +01:00
|
|
|
on: [ push, pull_request ]
|
|
|
|
|
|
|
|
env:
|
|
|
|
CFLAGS: "-Werror -Wall -Wextra -Wno-error=sign-compare -Wno-error=unused-parameter -Wno-error=missing-field-initializers"
|
|
|
|
UBUNTU_PACKAGES: meson gettext python3-dev python-gi-dev flake8 desktop-file-utils libappstream-glib-dev appstream-util python3-pytest python3-xdg python3-yaml python3-svgwrite python3-cairo
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
meson_test:
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
steps:
|
|
|
|
- name: Install dependencies
|
2022-04-26 01:29:35 +02:00
|
|
|
run: |
|
|
|
|
sudo apt-get update -yq
|
|
|
|
sudo apt-get install -yq --no-install-suggests --no-install-recommends $UBUNTU_PACKAGES
|
2022-12-06 23:54:09 +01:00
|
|
|
- uses: actions/checkout@v3
|
2021-01-22 08:03:09 +01:00
|
|
|
- name: meson
|
|
|
|
run: meson builddir
|
|
|
|
- name: ninja
|
|
|
|
run: ninja -C builddir test
|
|
|
|
- name: capture build logs
|
2022-12-06 23:54:09 +01:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-01-22 08:03:09 +01:00
|
|
|
if: ${{ always() }} # even if we fail
|
|
|
|
with:
|
|
|
|
name: meson logs
|
|
|
|
path: |
|
|
|
|
builddir/meson-logs
|