Skip to content

Commit 5a430b4

Browse files
ci: cache apt packages for tauri linux deps
1 parent 57b7ff3 commit 5a430b4

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,20 @@ jobs:
2323
steps:
2424
- uses: actions/checkout@v4
2525

26+
- name: Cache apt packages
27+
uses: actions/cache@v4
28+
with:
29+
path: ~/apt-cache
30+
key: ${{ runner.os }}-apt-tauri-${{ hashFiles('.github/workflows/ci.yml') }}
31+
restore-keys: |
32+
${{ runner.os }}-apt-tauri-
33+
2634
- name: Install Linux dependencies
2735
run: |
36+
mkdir -p ~/apt-cache && chmod -R a+rw ~/apt-cache
2837
sudo apt-get update
29-
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
38+
sudo apt-get install -y --no-install-recommends -o dir::cache::archives="$HOME/apt-cache" libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
39+
sudo chmod -R a+rw ~/apt-cache
3040
3141
- uses: dtolnay/rust-toolchain@stable
3242

0 commit comments

Comments
 (0)