Skip to content

Conversation

thomas9911
Copy link
Contributor

#2257

The build are copied from https://github.com/bytecodealliance/wasmtime/blob/v29.0.1/ci/build-build-matrix.js

I see it uses version 28.0 but I don't see aarch64-musl in that tag. However in 29.0 I dont see the 'bytecodealliance/wasmtime/.github/actions/binary-compatible-builds@release-28.0.0' workflow anymore 🤔

Signed-off-by: Thomas Timmer <thomastimmer11@hotmail.com>
@thomas9911 thomas9911 requested a review from a team as a code owner July 22, 2025 17:29
@thomas9911 thomas9911 requested review from abrown and removed request for a team July 22, 2025 17:29
@thomas9911
Copy link
Contributor Author

ah I see it uses wasm-tools (I though it would use wasmtime) to get the builder docker images

@alexcrichton
Copy link
Member

Ah yeah the Wasmtime action in-use here basically just builds some Docker containers in ci/docker/*, so copying over the files from Wasmtime should be sufficient


RUN apt-get update -y && apt-get install -y ninja-build
RUN git config --global --add safe.directory '*'
ENV EXTRA_RUSTFLAGS=-Ctarget-feature=-crt-static
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a bit different from Wasmtime in that EXTRA_RUSTFLAGS isn't recognized in this repository, could this be updated to RUSTFLAGS and/or could EXTRA_RUSTFLAGS get handled? (as-is static binaries are produced when it's intended that dynamic binaries are produced instead)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated both to use RUSTFLAGS instead

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

reverted back to EXTRA_RUSTFLAGS

@alexcrichton
Copy link
Member

Bah static binaries are still popping out. I believe the reason for that is that the wrapper script here will by default inherit rustflags from the calling process (which for CI is -D warnings) although below that I found handling of EXTRA_RUSTFLAGS, so actually I think EXTRA_* will work and the reason it didn't prior was that the architectures were swapped perhaps?

@alexcrichton alexcrichton added this pull request to the merge queue Jul 23, 2025
Merged via the queue into bytecodealliance:main with commit 2a8fd3c Jul 23, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants