diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 14802ee..983c7c7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 \