2021-07-13 01:12:43 +02:00
|
|
|
name: macos-ci
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ main ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ main ]
|
|
|
|
|
2022-06-07 03:08:13 +02:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-07-13 01:12:43 +02:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: macos-10.15
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: install dependencies
|
2022-04-21 21:24:58 +02:00
|
|
|
run: HOMEBREW_NO_AUTO_UPDATE=1 brew install pkg-config freetype glib cairo icu4c graphite2 gobject-introspection gtk-doc ninja
|
|
|
|
- run: pip3 install fonttools meson==0.56.0 gcovr==5.0
|
2021-07-13 01:12:43 +02:00
|
|
|
- name: run
|
|
|
|
run: PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig" meson build -Db_coverage=true -Dcoretext=enabled -Dgraphite=enabled -Dauto_features=enabled -Dchafa=disabled -Doptimization=2
|
|
|
|
- name: ci
|
|
|
|
run: meson test --print-errorlogs -Cbuild
|
|
|
|
|
|
|
|
- name: cov
|
2021-07-13 13:23:53 +02:00
|
|
|
run: ninja -Cbuild coverage-xml
|
2021-07-13 01:12:43 +02:00
|
|
|
- uses: codecov/codecov-action@v1
|
|
|
|
with:
|
|
|
|
file: build/meson-logs/coverage.xml
|