From b9646dfd6290dbf7819cc042bb6f541b80ef8b68 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Tue, 17 Jan 2023 20:46:33 +0200 Subject: [PATCH] [ci] Use sccache with msys2 --- .github/workflows/msys2-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/msys2-ci.yml b/.github/workflows/msys2-ci.yml index 146da0167..d08072db6 100644 --- a/.github/workflows/msys2-ci.yml +++ b/.github/workflows/msys2-ci.yml @@ -33,6 +33,10 @@ jobs: shell: msys2 {0} steps: - uses: actions/checkout@v3 + - uses: hendrikmuhs/ccache-action@v1.2 + with: + variant: sccache + key: ${{ github.job }}-${{ matrix.MSYSTEM }}-${{ matrix.MSYS2_ARCH }} - uses: msys2/setup-msys2@v2 with: msystem: ${{ matrix.MSYSTEM }} @@ -57,6 +61,8 @@ jobs: pip install --upgrade fonttools - name: Build run: | + export PATH=$PATH:$(cygpath -u $USERPROFILE/.cargo/bin) + sccache --version meson build \ --wrap-mode=nodownload \ --auto-features=enabled \