Skip to content

Less toolchain reinstalls in manylinux/musllinux #402

@andrius-puksta-sensmetry

Description

maturin-action always performs needless Rust toolchain installs for builds on manylinux/musllinux. As we observed from CI logs, the steps are:

  • (only on musllinux) remove existing stable toolchain (example CI run)
  • install latest stable
  • (if rust-toolchain.toml is present) install toolchain specified in rust-toolchain.toml. In our case, it is the latest stable version 1.92, but since "1.92" and "stable" are from different channels, rustup installs another copy of the same.

This is wasteful. Ideally, existing toolchain should be used if possible, if not, a single install of the toolchain should be performed, taking into account rust-toolchain.toml.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions