[ci] Re-enable coverage reporting on macOS

This commit is contained in:
Khaled Hosny 2023-01-19 22:55:11 +02:00 committed by خالد حسني (Khaled Hosny)
parent 8785d515d0
commit a0afde70c5
1 changed files with 9 additions and 2 deletions

View File

@ -33,7 +33,7 @@ jobs:
ninja \ ninja \
pkg-config pkg-config
- name: Install Python Dependencies - name: Install Python Dependencies
run: pip3 install fonttools run: pip3 install fonttools gcovr==5.0
- name: Setup Meson - name: Setup Meson
run: | run: |
export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig" export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig"
@ -44,8 +44,15 @@ jobs:
-Dchafa=disabled \ -Dchafa=disabled \
-Dcoretext=enabled \ -Dcoretext=enabled \
-Dgraphite=enabled \ -Dgraphite=enabled \
-Doptimization=2 -Doptimization=2 \
-Db_coverage=true \
- name: Build - name: Build
run: meson compile -Cbuild run: meson compile -Cbuild
- name: Test - name: Test
run: meson test --print-errorlogs -Cbuild run: meson test --print-errorlogs -Cbuild
- name: Generate Coverage
run: ninja -Cbuild coverage-xml
- name: Upload Coverage
uses: codecov/codecov-action@v3
with:
file: build/meson-logs/coverage.xml