Replace Circle Ci with github workflows

It has a better integration to github (to no-ones suprise), even though its
use of docker containers isn't as convenient.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
pull/273/head
Peter Hutterer 2021-01-22 17:03:09 +10:00
parent 993769929e
commit dda5f5fd01
2 changed files with 24 additions and 18 deletions

View File

@ -1,18 +0,0 @@
version: 2
jobs:
build:
working_directory: ~/tuhi
docker:
- image: fedora:latest
steps:
- run:
command: |
dnf install -y meson gettext python3-devel pygobject3-devel python3-flake8 desktop-file-utils libappstream-glib python3-pytest python3-pyxdg python3-pyyaml python3-svgwrite python3-cairo
- checkout
- run:
command: |
meson builddir
ninja -C builddir test
- store_artifacts:
path: ~/tuhi/builddir/meson-logs

24
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,24 @@
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
run: sudo apt-get install -yq --no-install-suggests --no-install-recommends $UBUNTU_PACKAGES
- uses: actions/checkout@v2
- name: meson
run: meson builddir
- name: ninja
run: ninja -C builddir test
- name: capture build logs
uses: actions/upload-artifact@v2
if: ${{ always() }} # even if we fail
with:
name: meson logs
path: |
builddir/meson-logs