Skip to content
This repository was archived by the owner on Feb 19, 2026. It is now read-only.

Commit 9163611

Browse files
authored
ci: fixed apt cache not working in publish.yml (anomalyco#13897)
1 parent d93cefd commit 9163611

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,16 +137,18 @@ jobs:
137137
if: contains(matrix.settings.host, 'ubuntu')
138138
uses: actions/cache@v4
139139
with:
140-
path: /var/cache/apt/archives
140+
path: ~/apt-cache
141141
key: ${{ runner.os }}-${{ matrix.settings.target }}-apt-${{ hashFiles('.github/workflows/publish.yml') }}
142142
restore-keys: |
143143
${{ runner.os }}-${{ matrix.settings.target }}-apt-
144144
145145
- name: install dependencies (ubuntu only)
146146
if: contains(matrix.settings.host, 'ubuntu')
147147
run: |
148+
mkdir -p ~/apt-cache && chmod -R a+rw ~/apt-cache
148149
sudo apt-get update
149-
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
150+
sudo apt-get install -y --no-install-recommends -o dir::cache::archives="$HOME/apt-cache" libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
151+
sudo chmod -R a+rw ~/apt-cache
150152
151153
- name: install Rust stable
152154
uses: dtolnay/rust-toolchain@stable

0 commit comments

Comments
 (0)