61 lines
1.5 KiB
YAML
61 lines
1.5 KiB
YAML
name: macos-ci
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
- name: Setup Ccache
|
|
uses: hendrikmuhs/ccache-action@v1.2
|
|
with:
|
|
key: ${{ github.job }}-${{ runner.os }}-${{ runner.arch }}
|
|
- name: Install Dependencies
|
|
run: |
|
|
export HOMEBREW_NO_AUTO_UPDATE=1
|
|
export HOMEBREW_NO_INSTALL_CLEANUP=1
|
|
brew install \
|
|
cairo \
|
|
freetype \
|
|
glib \
|
|
gobject-introspection \
|
|
graphite2 \
|
|
icu4c \
|
|
meson \
|
|
ninja \
|
|
pkg-config
|
|
- name: Install Python Dependencies
|
|
run: pip3 install fonttools gcovr==5.0
|
|
- name: Setup Meson
|
|
run: |
|
|
export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig"
|
|
ccache --version
|
|
meson setup build \
|
|
-Dauto_features=enabled \
|
|
-Ddocs=disabled \
|
|
-Dchafa=disabled \
|
|
-Dcoretext=enabled \
|
|
-Dgraphite=enabled \
|
|
-Doptimization=2 \
|
|
-Db_coverage=true \
|
|
- name: Build
|
|
run: meson compile -Cbuild
|
|
- name: Test
|
|
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
|