ci: attempt apt package caching

This commit is contained in:
Ryan Walters
2025-08-20 12:49:08 -05:00
parent 8c5e86be19
commit b7d90c151c

View File

@@ -80,11 +80,20 @@ jobs:
tool: tauri-cli@2
locked: true
- name: Cache apt packages
if: runner.os == 'Linux'
uses: actions/cache@v4
with:
path: /var/cache/apt/archives
key: ${{ runner.os }}-apt-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-apt-
- name: Install Linux dependencies
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
# Update package list and install dependencies in one command to reduce time
sudo apt-get update -qq && sudo apt-get install -y --no-install-recommends \
build-essential \
libxdo-dev \
libglib2.0-dev \