From 8799321312e346909f11050a0aae0e3027b0b3c1 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Wed, 18 Aug 2021 13:17:53 +0800 Subject: [PATCH] GHA CI: Use ccache --- .github/workflows/ci.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 213c229c5..ab5b603b4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -24,6 +24,9 @@ jobs: - name: Checkout repository uses: actions/checkout@v2 + - name: Setup ccache + uses: hendrikmuhs/ccache-action@v1 + - name: Install dependencies run: | sudo apt update @@ -46,6 +49,7 @@ jobs: git clone --branch ${{ matrix.libt_version }} --depth 1 https://github.com/arvidn/libtorrent.git cd libtorrent git submodule update --init --recursive + export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" cmake \ -B build \ -G "Ninja" \ @@ -58,6 +62,7 @@ jobs: - name: Build qBittorrent run: | + export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH" cmake \ -B build \ -G "Ninja" \