[ci] Add a GitHub CI bot

Run coverage also
This commit is contained in:
Ebrahim Byagowi 2020-04-28 15:30:25 +04:30 committed by GitHub
parent 482f4aafd5
commit f27c0065d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

25
.github/workflows/linux-ci.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: linux-ci
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install dependencies
run: apt-get install meson pkg-config gcc ragel lcov gtk-doc-tools libfreetype6-dev libglib2.0-dev libcairo2-dev libicu-dev libgraphite2-dev # libgirepository1.0-dev
- name: run
run: meson build -Db_coverage=true -Dglib=true -Dcairo=true -Dicu=true -Dgraphite=true -Dfreetype=true
- name: ci
run: meson test --print-errorlogs -Cbuild
- name: cov
run: ninja -Cbuild coverage
- uses: codecov/codecov-action@v1
with:
file: build/meson-logs/coverage.xml