2020-04-28 13:00:25 +02:00
|
|
|
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
|
2020-04-28 14:02:15 +02:00
|
|
|
run: sudo apt-get install pkg-config gcc ragel gcovr gtk-doc-tools libfreetype6-dev libglib2.0-dev libcairo2-dev libicu-dev libgraphite2-dev python3 python3-setuptools ninja-build # libgirepository1.0-dev
|
2020-04-28 16:20:33 +02:00
|
|
|
- name: install meson and fonttools
|
|
|
|
run: sudo pip3 install meson fonttools
|
2020-04-28 13:00:25 +02:00
|
|
|
- name: run
|
2020-04-28 14:02:15 +02:00
|
|
|
run: meson build -Db_coverage=true -Dglib=enabled -Dcairo=enabled -Dicu=enabled -Dgraphite=enabled -Dfreetype=enabled
|
2020-04-28 13:00:25 +02:00
|
|
|
- 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
|