Fix wheel building configuration in CI by installing libatomic1. (#18212)

Signed-off-by: Olivier 'reivilibre <oliverw@matrix.org>
This commit is contained in:
reivilibre 2025-03-04 17:37:28 +00:00 committed by GitHub
parent d7e238c8ee
commit b7946c29be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 1 deletions

11
.ci/before_build_wheel.sh Normal file
View file

@ -0,0 +1,11 @@
#!/bin/sh
set -eu
# On 32-bit Linux platforms, we need libatomic1 to use rustup
if command -v apt-get &> /dev/null; then
apt-get update
apt-get install libatomic1
fi
# Install a Rust toolchain
curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain 1.82.0 -y --profile minimal

1
changelog.d/18212.misc Normal file
View file

@ -0,0 +1 @@
Fix wheel building configuration in CI by installing libatomic1.

View file

@ -390,7 +390,7 @@ skip = "cp36* cp37* cp38* pp37* pp38* *-musllinux_i686 pp*aarch64 *-musllinux_aa
#
# We temporarily pin Rust to 1.82.0 to work around
# https://github.com/element-hq/synapse/issues/17988
before-all = "curl https://sh.rustup.rs -sSf | sh -s -- --default-toolchain 1.82.0 -y --profile minimal"
before-all = "sh .ci/before_build_wheel.sh"
environment= { PATH = "$PATH:$HOME/.cargo/bin" }
# For some reason if we don't manually clean the build directory we