Skip to content

CI: simplify i686 ("x86") apt dependencies - #1331

Closed
tarcieri wants to merge 1 commit into
masterfrom
ci/simplify-i686-deps
Closed

CI: simplify i686 ("x86") apt dependencies#1331
tarcieri wants to merge 1 commit into
masterfrom
ci/simplify-i686-deps

Conversation

@tarcieri

@tarcieri tarcieri commented Aug 4, 2026

Copy link
Copy Markdown
Member

This attempts to reduce the total number of dependencies we're using to do i686 builds from the whole of gcc-multilib to just what's actually needed for rustc to work.

This attempts to reduce the total number of dependencies we're using to
do i686 builds from the whole of `gcc-multilib` to just what's actually
needed for rustc to work.
@codecov

codecov Bot commented Aug 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.06%. Comparing base (c1b3419) to head (caaba28).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1331   +/-   ##
=======================================
  Coverage   91.06%   91.06%           
=======================================
  Files         189      189           
  Lines       22654    22654           
=======================================
  Hits        20630    20630           
  Misses       2024     2024           

☔ 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

tarcieri commented Aug 4, 2026

Copy link
Copy Markdown
Member Author

Closing in favor of RustCrypto/actions#66

@tarcieri tarcieri closed this Aug 4, 2026
tarcieri added a commit to RustCrypto/actions that referenced this pull request Aug 4, 2026
Our main use case for the `apt-install` action (#60) is installing the
packages we need to make `i686-unknown-linux-gnu` Rust programs build
and run on 64-bit runners.

The main thing it was trying to do was avoid `apt-get update` via
caching as updating the index was adding some 7s to each build,
unfortunately that didn't work out (#65).

Another thing we can do is avoid installing the whole of `gcc-multilib`
and disable the `needsrestart` hooks since we don't care about those.
Instead it installs `libc6-dev-i386` and `lib32gcc-13-dev` which seem to
be sufficient: see RustCrypto/crypto-bigint#1331.

This adds an action we can use everywhere we're doing setup for
`i686-unknown-linux-gnu` builds which gives us one place to do these
specific kinds of optimizations that don't need to apply to `apt-get` as
a whole like `apt-install` was trying to do.
tarcieri added a commit to RustCrypto/actions that referenced this pull request Aug 4, 2026
The whole goal of this action was to get rid of the packages parameter
so we can have one place to configure a minified list.

This uses the `libc6-dev-i386` and `lib32gcc-13-dev` packages which were
tested in RustCrypto/crypto-bigint#1331
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