Skip to content

Commit d815c42

Browse files
committed
ci: revert to a statically set, older cargo-c release
It appears the current latest release has changed install directories which breaks auto-detection of pkg-config support when building python wheels. Going forward it's more useful to use static known working cargo-c version when building wheels; forcing manual testing for new cargo-c versions before moving to them rather than pull the latest version and hope it hasn't changed anything that will break this build setup.
1 parent 50a3b8a commit d815c42

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.ci/buildlib

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ doecho() {
99
"$@"
1010
}
1111

12+
: ${CARGO_C_RELEASE:=v0.9.29}
1213
: ${PKGCRAFT_C_REF:=main}
1314
echo Building pkgcraft-c on ${OSTYPE} for ${HOSTTYPE}
1415

@@ -41,15 +42,15 @@ install_pkgs() {
4142
# install binary cargo-c package if available
4243
if [[ ${OSTYPE} == "linux-"* ]]; then
4344
if [[ ${HOSTTYPE} == "aarch64" ]]; then
44-
curl -L https://github.com/lu-zero/cargo-c/releases/latest/download/cargo-c-aarch64-unknown-linux-musl.tar.gz | tar xvzf - -C "${HOME}"/.cargo/bin
45+
curl -L https://github.com/lu-zero/cargo-c/releases/download/${CARGO_C_RELEASE}/cargo-c-aarch64-unknown-linux-musl.tar.gz | tar xvzf - -C "${HOME}"/.cargo/bin
4546
elif [[ ${HOSTTYPE} == "x86_64" ]]; then
46-
curl -L https://github.com/lu-zero/cargo-c/releases/latest/download/cargo-c-x86_64-unknown-linux-musl.tar.gz | tar xvzf - -C "${HOME}"/.cargo/bin
47+
curl -L https://github.com/lu-zero/cargo-c/releases/download/${CARGO_C_RELEASE}/cargo-c-x86_64-unknown-linux-musl.tar.gz | tar xvzf - -C "${HOME}"/.cargo/bin
4748
else
4849
SOURCE_CARGO_C=true
4950
fi
5051
elif [[ ${OSTYPE} == "darwin"* ]]; then
5152
if [[ ${HOSTTYPE} == "x86_64" ]]; then
52-
curl -L https://github.com/lu-zero/cargo-c/releases/latest/download/cargo-c-macos.zip > cargo-c.zip
53+
curl -L https://github.com/lu-zero/cargo-c/releases/download/${CARGO_C_RELEASE}/cargo-c-macos.zip > cargo-c.zip
5354
unzip -o cargo-c.zip -d "${HOME}"/.cargo/bin
5455
rm cargo-c.zip
5556
else

0 commit comments

Comments
 (0)