Skip to content

Commit

Permalink
ci: Enhance caching for pip, BerkeleyDB, and build dependencies in CI…
Browse files Browse the repository at this point in the history
… workflow
  • Loading branch information
gto90 committed Dec 17, 2024
1 parent 9d53a9c commit aa92cd2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/ci-coverage-ubuntu-full-qt-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
- uses: actions/checkout@v2

- name: Cache pip
id: cache-pip
uses: actions/cache@v3
with:
path: |
Expand All @@ -21,13 +22,15 @@ jobs:
restore-keys: v1-${{ runner.os }}-pip-

- name: Cache BerkeleyDB
id: cache-db4
uses: actions/cache@v3
with:
path: db4
key: v1-${{ runner.os }}-db4-${{ hashFiles('contrib/install_db4.sh') }}
restore-keys: v1-${{ runner.os }}-db4-

- name: Cache depends build
id: cache-depends
uses: actions/cache@v3
with:
path: |
Expand All @@ -52,16 +55,17 @@ jobs:
libqrencode-dev
- name: Install Python Packages
if: steps.cache-pip.outputs.cache-hit != 'true'
run: |
pip3 install pypandoc digibyte_scrypt
- name: Install BerkeleyDB
if: steps.cache-db4.outputs.cache-hit != 'true'
run: |
if [ ! -d "db4" ]; then
./contrib/install_db4.sh `pwd` --enable-cxx
fi
./contrib/install_db4.sh `pwd` --enable-cxx
- name: Build Dependencies
if: steps.cache-depends.outputs.cache-hit != 'true'
run: |
cd depends
make -j3 HOST=x86_64-linux-gnu
Expand Down

0 comments on commit aa92cd2

Please sign in to comment.