Repository navigation
Add Windows/macOS hosts to the test matrix - #771
Merged
Merged
Conversation
Currently no tests are run on macOS and Windows, just the build itself. To improve portability and assist with developers running on these platforms this commit adds new matrix entries on these hosts which run tests for `wasm32-wasip2`, which has more tests than the default wasip1. This required a number of minor changes throughout such as: * Getting Clang binaries for macOS which are up-to-date and not 15G large is a bit difficult, so this uses a historical release of wasi-sdk to download. * Downloading Wasmtime on Windows has been fixed. * Building on Windows at all has been fixed (invalid CMake target names previously) * The implementation of `remove` now works on macOS and Windows. * Build warnings for LLVM 20+ are fixed (macOS is now using LLVM 20, the first in CI). * Minor adjustments in tests for behaviors such as different errors or symlinks not working on Windows. One test, `fadvise.c`, remains failing on Windows. I've flagged it as an expected test failure and I don't really know what's going on there. I hope to get some time to investigate later but that'll require a Windows machine.
dicej
approved these changes
Mar 11, 2026
| run: | | ||
| curl -sSfL https://github.com/llvm/llvm-project/releases/download/llvmorg-${{ inputs.clang_version }}/clang+llvm-${{ inputs.clang_version }}-${{ inputs.llvm_asset_suffix }}.tar.xz | tar xJf - | ||
| export CLANG_DIR=`pwd`/clang+llvm-${{ inputs.clang_version }}-${{ inputs.llvm_asset_suffix }}/bin | ||
| case ${{ inputs.clang_version }} in |
Collaborator
There was a problem hiding this comment.
Might make sense to rename clang_version to clang_or_wasi_sdk_version for clarity.
Collaborator
Author
There was a problem hiding this comment.
I'll try to address this in a follow-up yeah, this action has definitely grown in scope a bit...
Teemperor
pushed a commit
to Teemperor/swift-mono
that referenced
this pull request
Mar 27, 2026
…772) This commit adds a new CI builder for LLVM 22, distinct from preexisting builders using LLVM 20. This notably exposes a bug where setjmp/longjmp needed a fix because the method of definition of `__c_setjmp`, the tag used, changed in LLVM 22. > **Note**: this is temporarily built on WebAssembly/wasi-libc#770 and WebAssembly/wasi-libc#771
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently no tests are run on macOS and Windows, just the build itself. To improve portability and assist with developers running on these platforms this commit adds new matrix entries on these hosts which run tests for
wasm32-wasip2, which has more tests than the default wasip1.This required a number of minor changes throughout such as:
Getting Clang binaries for macOS which are up-to-date and not 15G large is a bit difficult, so this uses a historical release of wasi-sdk to download.
Downloading Wasmtime on Windows has been fixed.
Building on Windows at all has been fixed (invalid CMake target names previously)
The implementation of
removenow works on macOS and Windows.Build warnings for LLVM 20+ are fixed (macOS is now using LLVM 20, the first in CI).
Minor adjustments in tests for behaviors such as different errors or symlinks not working on Windows.
One test,
fadvise.c, remains failing on Windows. I've flagged it as an expected test failure and I don't really know what's going on there. I hope to get some time to investigate later but that'll require a Windows machine.