Skip to content

CI: cache installed apt packages#1289

Merged
tarcieri merged 1 commit into
masterfrom
ci/apt-cache
Jun 9, 2026
Merged

CI: cache installed apt packages#1289
tarcieri merged 1 commit into
masterfrom
ci/apt-cache

Conversation

@tarcieri

@tarcieri tarcieri commented Jun 9, 2026

Copy link
Copy Markdown
Member

I'm testing this out with a third-party action: eth-pkg/apt-deb-cache@v0.2.6

It's small and simple enough though if it works we can just vendor it and modify it for our own purposes.

Edit: vendored here: RustCrypto/actions#60

@codecov

codecov Bot commented Jun 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.16%. Comparing base (d50f444) to head (675c08c).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1289   +/-   ##
=======================================
  Coverage   91.16%   91.16%           
=======================================
  Files         189      189           
  Lines       22351    22351           
=======================================
  Hits        20377    20377           
  Misses       1974     1974           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

tarcieri added a commit to RustCrypto/actions that referenced this pull request Jun 9, 2026
Vendors a copy of https://github.com/eth-pkg/apt-deb-cache
taken as of commit fd375b6.

Invoking `apt-get` directly every run can sometimes be very, very slow
depending on the runner.

This uses `apt-get` to download `.deb` files upon a cache miss, then
installs and caches them.

I tested it out on this PR: RustCrypto/crypto-bigint#1289

Package install was about twice as fast even uncached.
tarcieri added a commit to RustCrypto/actions that referenced this pull request Jun 9, 2026
Vendors a copy of https://github.com/eth-pkg/apt-deb-cache
taken as of commit fd375b6.

Invoking `apt-get` directly every run can sometimes be very, very slow
depending on the runner.

This uses `apt-get` to download `.deb` files upon a cache miss, then
installs and caches them.

I tested it out on this PR: RustCrypto/crypto-bigint#1289

Package install was about twice as fast even uncached.
tarcieri added a commit to RustCrypto/actions that referenced this pull request Jun 9, 2026
Vendors a copy of https://github.com/eth-pkg/apt-deb-cache taken as of
commit fd375b6.

Invoking `apt-get` directly every run can sometimes be very, very slow
depending on the runner.

This uses `apt-get` to download `.deb` files upon a cache miss, then
installs and caches them.

I tested it out on this PR: RustCrypto/crypto-bigint#1289

Package install was about twice as fast even uncached.
@tarcieri tarcieri changed the title [WIP] CI: cache installed apt packages CI: cache installed apt packages Jun 9, 2026
@tarcieri tarcieri marked this pull request as ready for review June 9, 2026 12:30
@tarcieri tarcieri merged commit 164ae5c into master Jun 9, 2026
32 checks passed
@tarcieri tarcieri deleted the ci/apt-cache branch June 9, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant