From c1d6dc70f488f74e3ab3ddfbd6cd0dd7700ef331 Mon Sep 17 00:00:00 2001 From: Lasan Mahaliyana <78136120+kidfromjupiter@users.noreply.github.com> Date: Wed, 15 Apr 2026 22:28:37 +0530 Subject: [PATCH] Refactor APT cache handling in workflow --- .github/workflows/release-nearby-qml-tray.yaml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release-nearby-qml-tray.yaml b/.github/workflows/release-nearby-qml-tray.yaml index c04ccd06..6f2c353e 100644 --- a/.github/workflows/release-nearby-qml-tray.yaml +++ b/.github/workflows/release-nearby-qml-tray.yaml @@ -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: |