mirror of https://github.com/tuhiproject/tuhi.git
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
parent
993769929e
commit
dda5f5fd01
|
@ -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
|
||||
|
|
@ -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
|
Loading…
Reference in New Issue