| version | Required version of SDL (2.x.y, 2-any, 2-latest, 2-head, 3-head), or git hash | yes | 2-any |
| version-sdl-image | Version of SDL_image (2.x.y, 2-any, 2-latest, 2-head, 3-head), git hash, or <empty> | no | — |
| version-sdl-mixer | Version of SDL_mixer (2.x.y, 2-any, 2-latest, 2-head, 3-head), git hash, or <empty> | no | — |
| version-sdl-net | Version of SDL_net (2.x.y, 2-any, 2-latest, 2-head, 3-head), git hash, or <empty> | no | — |
| version-sdl-rtf | Version of SDL_rtf (2.x.y, 2-any, 2-latest, 2-head, 3-head), git hash, or <empty> | no | — |
| version-sdl-ttf | Version of SDL_ttf (2.x.y, 2-any, 2-latest, 2-head, 3-head), git hash, or <empty> | no | — |
| version-sdl2-compat | Version of sdl2-compat (2.x.y, 2-any, 2-latest, 2-head), git hash, or <empty> | no | — |
| version-sdl12-compat | Version of sdl12-compat (1.x.y, 1-any, 1-latest, 1-head), git hash, or <empty> | no | — |
| pre-release | Allow pre-releases | yes | true |
| build-type | CMake build type (Release/Debug/RelWithDebInfo/MinSizeRel) | yes | Debug |
| sdl-test | Build and install SDL_test library | — | false |
| cmake-toolchain-file | Path of a CMake toolchain file | — | — |
| cmake-generator | CMake generator name (see https://cmake.org/cmake/help/latest/manual/cmake-generators.7.html) | — | — |
| cmake-arguments | Extra CMake arguments during configuration | — | — |
| install-linux-dependencies | Install dependencies (supports apt-get, dnf, brew, and msys2-pacman) | — | — |
| shell | Run commands as `$shell $file` (with $file containing the build commands) | — | — |
| discriminator | Unique string to include in the GitHub SDL cache hash | — | ${{ runner.os }}-${{ runner.arch }} |
| add-to-environment | Add path of the SDL (shared) library to PATH/LD_LIBRARY_PATH/DYLD_LIBRARY_PATH | — | false |
| token | A GitHub API token. | — | ${{ github.token }} |