Skip to content

GuillaumeFalourd/setup-windows10-sdk-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Setup Windows 10 SDK Action

.github/workflows/default-sdk-version-workflow.yml

.github/workflows/specific-sdk-version-workflow.yml

Warnings:

  • 18362 and 19041 official download links are broken (404). Feel free to contribute if you find new links!
  • 16299 download link works, but the package doesn't build anymore. Feel free to contribute if you find a working package for this SDK version!

PS: It may seems a lot, but other SDK versions work as expected.

title

Github action to download and install a specific version of the Windows 10 SDK.

Supported versions: 16299, 17763, 18362, 19041, 20348, 22000, 22621, 26100.

How to use this action?

Public workflows that use this action.

Action input

Field Mandatory Observation
sdk-version YES The 5-digit version (build) of the SDK (10.0.xxxxx.0) to install
Examples: 16299, 17763, 18362, 19041, 20348, 22000, 22621, 26100 (Default is 20348).

SDK links can be found here: https://developer.microsoft.com/en-us/windows/downloads/sdk-archive/

Obs: Want to add another sdk-version? Contribute here!

Example

Default SDK version (20348)

steps:
- uses: actions/checkout@v4
- uses: GuillaumeFalourd/[email protected]

Specific SDK version (22000)

steps:
- uses: actions/checkout@v4
- uses: GuillaumeFalourd/[email protected]
  with:
    sdk-version: 22000

You would then need to use CMake command to use the specific SDK on your workflow.

- name: Build new SDK
  shell: bash
  run: |
    cmake -DCMAKE_SYSTEM_VERSION=10.0.20348.0
    cmake --build .

Here are some references for CMake:

Credits

Licensed

This repository uses the Apache License 2.0

🤝 Contribution

Would like to contribute to the repository? Here are the guidelines 🚀

(Made with contributors-img)