Skip to content

Add apt-install action#60

Merged
tarcieri merged 1 commit into
masterfrom
apt-install
Jun 9, 2026
Merged

Add apt-install action#60
tarcieri merged 1 commit into
masterfrom
apt-install

Conversation

@tarcieri

@tarcieri tarcieri commented Jun 9, 2026

Copy link
Copy Markdown
Member

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.

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.
Comment thread apt-install/action.yml
Comment on lines +35 to +36
env:
DEBIAN_FRONTEND: 'noninteractive'

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I extracted these out from the script to make yamllint line length restrictions happy. It should work, I think?

Comment thread .yamllint.yml
Comment on lines +1 to +3
rules:
line-length:
max: 100

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use this everywhere else as the rustfmt default. Seems ok here

@newpavlov newpavlov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting. I can not say I fully understand the job, but it looks fine on the first glance.

Since we primarily use it for gcc-multilib, another (potentially simpler) alternative could be to use a container image with pre-installed gcc-multilib.

@tarcieri tarcieri merged commit 0a4ed2f into master Jun 9, 2026
1 check passed
@tarcieri tarcieri deleted the apt-install branch June 9, 2026 12:27
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.

2 participants