Add setup-i686-gcc action - #66
Merged
Merged
Conversation
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.
Member
Author
|
Merging so I can test it out |
tarcieri
commented
Aug 4, 2026
| env: | ||
| DEBIAN_FRONTEND: noninteractive | ||
| NEEDRESTART_SUSPEND: 1 | ||
| run: sudo apt-get update && apt-get install -y ${{ inputs.packages }} |
Member
Author
There was a problem hiding this comment.
Blah, forgot to add the specific packages 🤦
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.
Our main use case for the
apt-installaction (#60) is installing the packages we need to makei686-unknown-linux-gnuRust programs build and run on 64-bit runners.The main thing it was trying to do was avoid
apt-get updatevia 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-multiliband disable theneedsrestarthooks since we don't care about those. Instead it installslibc6-dev-i386andlib32gcc-13-devwhich 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-gnubuilds which gives us one place to do these specific kinds of optimizations that don't need to apply toapt-getas a whole likeapt-installwas trying to do.