mirror of
https://github.com/Xevion/byte-me.git
synced 2025-12-06 01:14:33 -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
|
tool: tauri-cli@2
|
||||||
locked: true
|
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
|
- name: Install Linux dependencies
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
# Update package list and install dependencies in one command to reduce time
|
||||||
sudo apt-get install -y --no-install-recommends \
|
sudo apt-get update -qq && sudo apt-get install -y --no-install-recommends \
|
||||||
build-essential \
|
build-essential \
|
||||||
libxdo-dev \
|
libxdo-dev \
|
||||||
libglib2.0-dev \
|
libglib2.0-dev \
|
||||||
|
|||||||
Reference in New Issue
Block a user