Skip to content

Commit

Permalink
ci: Enhance caching for APT packages, pip, and build dependencies in …
Browse files Browse the repository at this point in the history
…CI workflow
  • Loading branch information
gto90 committed Dec 17, 2024
1 parent 7b9372b commit 4b2c7bb
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion .github/workflows/ci-coverage-ubuntu-full-qt-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 4b2c7bb

Please sign in to comment.