diff options
| author | Goni Zahavy <[email protected]> | 2026-02-17 01:31:38 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-02-16 17:31:38 -0600 |
| commit | 9163611989678e7d8b585003655b6c8863e81f97 (patch) | |
| tree | a49ae55ed5a6f72597b4fa07261c2a1243862743 /.github | |
| parent | d93cefd47af5cb18f4c5e0a978537e1da9d58658 (diff) | |
| download | opencode-9163611989678e7d8b585003655b6c8863e81f97.tar.gz opencode-9163611989678e7d8b585003655b6c8863e81f97.zip | |
ci: fixed apt cache not working in publish.yml (#13897)
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/publish.yml | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a1b492258..f63802ac5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -137,7 +137,7 @@ jobs: if: contains(matrix.settings.host, 'ubuntu') uses: actions/cache@v4 with: - path: /var/cache/apt/archives + path: ~/apt-cache key: ${{ runner.os }}-${{ matrix.settings.target }}-apt-${{ hashFiles('.github/workflows/publish.yml') }} restore-keys: | ${{ runner.os }}-${{ matrix.settings.target }}-apt- @@ -145,8 +145,10 @@ jobs: - name: install dependencies (ubuntu only) if: contains(matrix.settings.host, 'ubuntu') run: | + mkdir -p ~/apt-cache && chmod -R a+rw ~/apt-cache sudo apt-get update - sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf + sudo apt-get install -y --no-install-recommends -o dir::cache::archives="$HOME/apt-cache" libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf + sudo chmod -R a+rw ~/apt-cache - name: install Rust stable uses: dtolnay/rust-toolchain@stable |
