Pin release artifacts Rust toolchain (#5669)

This fixes the build issue identified in #5664 at the toolchain level
rather than working around it in our own build. The next step in fixing
this will be to remove the nightly override in the future when the
toolchain becomes stable.
This commit is contained in:
Alex Crichton
2023-01-31 10:51:43 -06:00
committed by GitHub
parent bf4d0e9212
commit d61758e2e9
2 changed files with 6 additions and 10 deletions

View File

@@ -49,8 +49,6 @@ if [ "$platform" = "x86_64-windows" ]; then
"$WIX/bin/light" -out dist/$bin_pkgname.msi target/wasmtime.wixobj -ext WixUtilExtension
rm dist/$bin_pkgname.wixpdb
elif [ "$platform" = "x86_64-mingw" ]; then
# FIXME: remove when https://github.com/rust-lang/rust/issues/107495 is fixed
chmod 0664 target/x86_64-pc-windows-gnu/release/libwasmtime.a
cp target/x86_64-pc-windows-gnu/release/wasmtime.exe tmp/$bin_pkgname
cp target/x86_64-pc-windows-gnu/release/{wasmtime.dll,libwasmtime.a,libwasmtime.dll.a} tmp/$api_pkgname/lib
fmt=zip
@@ -59,24 +57,16 @@ elif [ "$platform" = "x86_64-macos" ]; then
# directive than the default one that comes out of the linker when typically
# doing `cargo build`. For more info see #984
install_name_tool -id "@rpath/libwasmtime.dylib" target/release/libwasmtime.dylib
# FIXME: remove when https://github.com/rust-lang/rust/issues/107495 is fixed
sudo chmod 0664 target/release/libwasmtime.a
cp target/release/wasmtime tmp/$bin_pkgname
cp target/release/libwasmtime.{a,dylib} tmp/$api_pkgname/lib
elif [ "$platform" = "aarch64-macos" ]; then
install_name_tool -id "@rpath/libwasmtime.dylib" target/aarch64-apple-darwin/release/libwasmtime.dylib
# FIXME: remove when https://github.com/rust-lang/rust/issues/107495 is fixed
sudo chmod 0664 target/aarch64-apple-darwin/release/libwasmtime.a
cp target/aarch64-apple-darwin/release/wasmtime tmp/$bin_pkgname
cp target/aarch64-apple-darwin/release/libwasmtime.{a,dylib} tmp/$api_pkgname/lib
elif [ "$target" = "" ]; then
# FIXME: remove when https://github.com/rust-lang/rust/issues/107495 is fixed
sudo chmod 0664 target/release/libwasmtime.a
cp target/release/wasmtime tmp/$bin_pkgname
cp target/release/libwasmtime.{a,so} tmp/$api_pkgname/lib
else
# FIXME: remove when https://github.com/rust-lang/rust/issues/107495 is fixed
sudo chmod 0664 target/$target/release/libwasmtime.a
cp target/$target/release/wasmtime tmp/$bin_pkgname
cp target/$target/release/libwasmtime.{a,so} tmp/$api_pkgname/lib
fi