From dcf0831551bf029a159574ef06fbbc232dd7a4b4 Mon Sep 17 00:00:00 2001 From: Lasan Mahaliyana <78136120+kidfromjupiter@users.noreply.github.com> Date: Wed, 15 Apr 2026 22:22:17 +0530 Subject: [PATCH] added apt caching --- .../workflows/release-nearby-qml-tray.yaml | 24 ++++++++++++++----- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release-nearby-qml-tray.yaml b/.github/workflows/release-nearby-qml-tray.yaml index 87f4856f..c04ccd06 100644 --- a/.github/workflows/release-nearby-qml-tray.yaml +++ b/.github/workflows/release-nearby-qml-tray.yaml @@ -33,13 +33,16 @@ jobs: # Share repository cache between workflows. repository-cache: true - - name: Cache apt packages - uses: actions/cache@v4 + - name: Restore APT cache + id: apt-cache-restore + uses: actions/cache/restore@v5 with: - path: /var/cache/apt/archives - key: apt-${{ runner.os }}-${{ hashFiles('.github/workflows/release-nearby-qml-tray.yaml') }} - restore-keys: apt-${{ runner.os }}- - save-always: true + path: | + /var/cache/apt/archives + /var/lib/apt/lists + key: ${{ runner.os }}-apt-${{ hashFiles('.github/apt-packages.txt') }} + + - name: Install Linux build dependencies run: | @@ -68,6 +71,15 @@ jobs: qt6-tools-dev-tools \ libqrencode-dev + - name: Save APT cache + if: always() && steps.apt-cache-restore.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 + - name: Build and install sdbus-c++ run: | git clone https://github.com/Kistler-Group/sdbus-cpp.git