Skip to content

Add Windows/macOS hosts to the test matrix - #771

Merged
alexcrichton merged 1 commit into
WebAssembly:mainfrom
alexcrichton:test-more-platforms
Mar 11, 2026
Merged

alexcrichton merged 1 commit into
WebAssembly:mainfrom
alexcrichton:test-more-platforms

Conversation

@alexcrichton

Copy link
Copy Markdown
Collaborator

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.

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.
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

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Might make sense to rename clang_version to clang_or_wasi_sdk_version for clarity.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I'll try to address this in a follow-up yeah, this action has definitely grown in scope a bit...

@alexcrichton
alexcrichton merged commit 1e644fd into WebAssembly:main Mar 11, 2026
31 checks passed
@alexcrichton
alexcrichton deleted the test-more-platforms branch March 11, 2026 14:41
alexcrichton added a commit that referenced this pull request Mar 11, 2026
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
#770 and
#771
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
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