-
Notifications
You must be signed in to change notification settings - Fork 72
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
Fix Windows build on GitHub CI #23
base: main
Are you sure you want to change the base?
Conversation
👋 Thanks for your contribution! Your PR has been imported to Gerrit. |
When it passes CI lets me know so we can merge the Gerrit CL associated with it. |
The check that does not pass here is not related to this PR. Artifacts are correctly generated for tasks that did succeed, so this PR is still helpful as it enables generating binaries for Windows (even if not all tasks succeed) |
Thanks @eliemichel, yeah we want to take this in but it has to be reviewed on https://dawn-review.googlesource.com/c/dawn/+/215215 where there already are a couple comments. |
Commit 54ad644 removed a test because the required version of Windows SDK to build Dawn is 22621. However, GitHub Action Windows runner uses SDK version 20348 by default.
This PR uses fbactions/setup-winsdk@v2 to install the target version of Windows SDK, but this is not enough so we also add env variable to force SDK detection. Both env variables and cmake variable seem to be required, the former are used by DXC's
FindD3D12
script and others are for CMake's generic SDK detection.Example of successful CI run: https://github.com/eliemichel/dawn-prebuilt/actions/runs/11861028908/job/33057504211