From 582636bce035e655392d82c400a2953ccb815a2c Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Tue, 17 Jan 2023 18:09:41 +0200 Subject: [PATCH] [ci] Use ccache for linux and macos jobs --- .github/workflows/linux-ci.yml | 5 ++++- .github/workflows/macos-ci.yml | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linux-ci.yml b/.github/workflows/linux-ci.yml index 3a95e9b64..cbd25f92d 100644 --- a/.github/workflows/linux-ci.yml +++ b/.github/workflows/linux-ci.yml @@ -16,11 +16,14 @@ jobs: steps: - uses: actions/checkout@v3 + - uses: hendrikmuhs/ccache-action@v1.2 - name: install dependencies run: sudo apt-get update && sudo apt-get install pkg-config gcc gtk-doc-tools libfreetype6-dev libglib2.0-dev libcairo2-dev libicu-dev libgraphite2-dev python3 python3-setuptools ninja-build gobject-introspection libgirepository1.0-dev - run: sudo pip3 install fonttools meson==0.56.0 gcovr==5.0 - name: run - run: meson build -Db_coverage=true --auto-features=enabled -Dgraphite=enabled -Dchafa=disabled -Dragel_subproject=true -Doptimization=2 + run: | + ccache --version + meson setup build -Db_coverage=true --auto-features=enabled -Dgraphite=enabled -Dchafa=disabled -Dragel_subproject=true -Doptimization=2 - name: ci run: meson test --print-errorlogs -Cbuild diff --git a/.github/workflows/macos-ci.yml b/.github/workflows/macos-ci.yml index 6a0b793f6..1fbe2305d 100644 --- a/.github/workflows/macos-ci.yml +++ b/.github/workflows/macos-ci.yml @@ -15,10 +15,14 @@ jobs: steps: - uses: actions/checkout@v3 + - uses: hendrikmuhs/ccache-action@v1.2 - name: install dependencies run: HOMEBREW_NO_AUTO_UPDATE=1 brew install meson pkg-config freetype glib glib-utils cairo icu4c graphite2 gobject-introspection gtk-doc ninja - run: pip3 install fonttools - name: run - run: PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig" meson build -Dcoretext=enabled -Dgraphite=enabled -Dauto_features=enabled -Dchafa=disabled -Doptimization=2 + run: | + export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig:/usr/local/opt/libffi/lib/pkgconfig" + ccache --version + meson setup build -Dcoretext=enabled -Dgraphite=enabled -Dauto_features=enabled -Dchafa=disabled -Doptimization=2 - name: ci run: meson test --print-errorlogs -Cbuild