From 4b2c7bb06dd014207308324302458a827a74f17f Mon Sep 17 00:00:00 2001 From: GTO90 Date: Mon, 16 Dec 2024 21:58:21 -0600 Subject: [PATCH] ci: Enhance caching for APT packages, pip, and build dependencies in CI workflow --- .../ci-coverage-ubuntu-full-qt-tests.yml | 35 ++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-coverage-ubuntu-full-qt-tests.yml b/.github/workflows/ci-coverage-ubuntu-full-qt-tests.yml index 6e3e0c659b..f6fb3f5510 100644 --- a/.github/workflows/ci-coverage-ubuntu-full-qt-tests.yml +++ b/.github/workflows/ci-coverage-ubuntu-full-qt-tests.yml @@ -11,7 +11,29 @@ jobs: steps: - uses: actions/checkout@v2 - + + - name: Cache APT Packages + uses: actions/cache@v3 + with: + path: | + /var/cache/apt + /var/lib/apt/lists + key: v1-${{ runner.os }}-apt-${{ hashFiles('**/ci-coverage-ubuntu-full-qt-tests.yml') }} + restore-keys: | + v1-${{ runner.os }}-apt- + v1-${{ runner.os }}- + + - name: Cache pip + uses: actions/cache@v3 + with: + path: | + ~/.cache/pip + ~/.cache/pip3 + key: v1-${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + restore-keys: | + v1-${{ runner.os }}-pip- + v1-${{ runner.os }}- + - name: Install Basic Build Dependencies run: | sudo apt-get update @@ -31,6 +53,17 @@ jobs: - name: Install BerkleyDB run: ./contrib/install_db4.sh `pwd` --enable-cxx + - name: Cache depends build + uses: actions/cache@v3 + with: + path: | + depends/built + depends/sdk-sources + depends/x86_64-linux-gnu + key: v1-${{ runner.os }}-depends-${{ hashFiles('depends/Makefile') }} + restore-keys: | + v1-${{ runner.os }}-depends- + - name: Build Dependencies run: | cd depends