Skip to content

Commit

Permalink
github-ci: cache deb packages on Ubuntu dist builder
Browse files Browse the repository at this point in the history
Should speed up setup a little.
  • Loading branch information
jasonish committed Oct 2, 2024
1 parent 501f79c commit 9816a79
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2709,6 +2709,19 @@ jobs:
path: ~/.cargo
key: ${{ github.job }}-cargo

# Setup apt package caching.
- name: Setup apt package caching
run: |
echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' >> /etc/apt/apt.conf.d/99cache
echo 'APT::Keep-Downloaded-Packages "false";' >> /etc/apt/apt.conf.d/99cache
rm -f /etc/apt/apt.conf.d/docker-clean
- name: Cache apt downloads
uses: actions/cache@13aacd865c20de90d75de3b17ebe84f7a17d57d2
with:
path: /var/cache/apt/archives
key: ${{ github.job }}-apt

- name: Determine number of CPUs
run: echo CPUS=$(nproc --all) >> $GITHUB_ENV

Expand Down

0 comments on commit 9816a79

Please sign in to comment.