From dd5ed59df0ac9f68ef0b8d18af184197acb3b7f8 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Tue, 25 Mar 2025 09:04:47 +0100 Subject: [PATCH] [ci,abi] cache self build abigail tools cache the packages build and reuse them. --- .github/workflows/abi-checker.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/abi-checker.yml b/.github/workflows/abi-checker.yml index 9f0bc0435..96ad80244 100644 --- a/.github/workflows/abi-checker.yml +++ b/.github/workflows/abi-checker.yml @@ -28,7 +28,17 @@ jobs: fetch-depth: 0 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" + if: always() && steps.cache-abigail-tools-restore.outputs.cache-hit != 'true' run: | mkdir deb cd deb @@ -40,6 +50,15 @@ jobs: dpkg-buildpackage 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" run: | sudo apt-get update -q -y