CI: simplify i686 ("x86") apt dependencies - #1331
Closed
tarcieri wants to merge 1 commit into
Closed
Conversation
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 Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
Member
Author
|
Closing in favor of RustCrypto/actions#66 |
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This attempts to reduce the total number of dependencies we're using to do i686 builds from the whole of
gcc-multilibto just what's actually needed for rustc to work.