WebAssembly / wasi-sdk

WASI-enabled WebAssembly C/C++ toolchain
Apache License 2.0
1.27k stars 190 forks source link

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

Closed alexcrichton closed 3 months ago

alexcrichton commented 3 months ago

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.