Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a CI check for testing toolchains as-distributed #449

Merged
merged 6 commits into from
Jul 22, 2024

Conversation

alexcrichton
Copy link
Collaborator

One aspect of testing lost in the CMake-based migration is the ability to test the toolchains as distributed in release artifacts. Tests use --sysroot and -resource-dir (soon) to customize how the host compiler runs but this means that it would be possible to regress the default sysroot theoretically. To rectify this situation this commit adds a new CI test which uses the release artifacts of previous steps to build a wasi-sdk-*.tar.gz tarball which is then extracted and tested as-is. A new flag was added to the cmake configuration to avoid depending on fresh sysroot libraries for tests and instead test the host toolchain.

One aspect of testing lost in the CMake-based migration is the ability
to test the toolchains as distributed in release artifacts. Tests use
`--sysroot` and `-resource-dir` (soon) to customize how the host
compiler runs but this means that it would be possible to regress the
default sysroot theoretically. To rectify this situation this commit
adds a new CI test which uses the release artifacts of previous steps to
build a `wasi-sdk-*.tar.gz` tarball which is then extracted and tested
as-is. A new flag was added to the cmake configuration to avoid
depending on fresh sysroot libraries for tests and instead test the host
toolchain.
Otherwise the test directory seems like it inherits these options which
isn't desired when testing the host toolchain.
@alexcrichton alexcrichton requested a review from abrown July 19, 2024 14:53
@abrown abrown merged commit 9ee7080 into WebAssembly:main Jul 22, 2024
7 checks passed
@alexcrichton alexcrichton deleted the test-sysroot-as-is branch July 22, 2024 17:49
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