Refactor APT cache handling in workflow

This commit is contained in:
Lasan Mahaliyana
2026-04-15 22:28:37 +05:30
committed by GitHub
parent dcf0831551
commit c1d6dc70f4
+6 -10
View File
@@ -34,13 +34,11 @@ jobs:
repository-cache: true
- name: Restore APT cache
id: apt-cache-restore
id: apt-cache
uses: actions/cache/restore@v5
with:
path: |
/var/cache/apt/archives
/var/lib/apt/lists
key: ${{ runner.os }}-apt-${{ hashFiles('.github/apt-packages.txt') }}
path: /var/cache/apt/archives/*.deb
key: ${{ runner.os }}-apt-debs-${{ hashFiles('.github/workflows/build.yml') }}
@@ -72,13 +70,11 @@ jobs:
libqrencode-dev
- name: Save APT cache
if: always() && steps.apt-cache-restore.outputs.cache-hit != 'true'
if: always() && steps.apt-cache.outputs.cache-hit != 'true'
uses: actions/cache/save@v5
with:
key: ${{ steps.apt-cache-restore.outputs.cache-primary-key }}
path: |
/var/cache/apt/archives
/var/lib/apt/lists
key: ${{ steps.apt-cache.outputs.cache-primary-key }}
path: /var/cache/apt/archives/*.deb
- name: Build and install sdbus-c++
run: |