[ci,abi] cache self build abigail tools

cache the packages build and reuse them.
This commit is contained in:
akallabeth 2025-03-25 09:04:47 +01:00
parent 6f66fdf28c
commit dd5ed59df0
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -28,7 +28,17 @@ jobs:
fetch-depth: 0 fetch-depth: 0
ref: ${{steps.pr.outputs.merge_commit_sha}} ref: ${{steps.pr.outputs.merge_commit_sha}}
- name: Restore abigail tools
id: cache-abigail-tools-restore
if: always() && steps.cache-abigail-tools-restore.outputs.cache-hit != 'true'
uses: actions/cache/restore@v4
with:
key: cache-abigail-tools
path: |
.
- name: "Prepare abigail-tools" - name: "Prepare abigail-tools"
if: always() && steps.cache-abigail-tools-restore.outputs.cache-hit != 'true'
run: | run: |
mkdir deb mkdir deb
cd deb cd deb
@ -40,6 +50,15 @@ jobs:
dpkg-buildpackage dpkg-buildpackage
sudo dpkg -i ../*.deb sudo dpkg -i ../*.deb
- name: Save abigail tools
id: cache-abigail-tools-save
if: always() && steps.cache-abigail-tools-restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
key: cache-abigail-tools
path: |
.
- name: "Prepare environment" - name: "Prepare environment"
run: | run: |
sudo apt-get update -q -y sudo apt-get update -q -y