mirror of
https://github.com/Xevion/byte-me.git
synced 2025-12-06 09:14:35 -06:00
ci: attempt apt package caching
This commit is contained in:
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user