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@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2 - name: Setup Ccache uses: hendrikmuhs/ccache-action@ca3acd2731eef11f1572ccb126356c2f9298d35e # v1.2.9 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@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4 with: file: build/meson-logs/coverage.xml