{"id":28412348,"url":"https://github.com/libsdl-org/setup-sdl","last_synced_at":"2025-09-04T19:45:02.819Z","repository":{"id":175964695,"uuid":"654774154","full_name":"libsdl-org/setup-sdl","owner":"libsdl-org","description":"GitHub action for providing SDL.","archived":false,"fork":false,"pushed_at":"2025-05-16T19:54:30.000Z","size":1651,"stargazers_count":36,"open_issues_count":14,"forks_count":6,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-08-12T18:45:56.613Z","etag":null,"topics":["actions","sdl","sdl2","sdl3"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/libsdl-org.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-06-16T23:34:48.000Z","updated_at":"2025-08-04T21:38:22.000Z","dependencies_parsed_at":"2024-05-16T07:24:55.244Z","dependency_job_id":"e5f72887-7959-4c40-98ae-888bb3a85920","html_url":"https://github.com/libsdl-org/setup-sdl","commit_stats":null,"previous_names":["madebr/setup-sdl"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/libsdl-org/setup-sdl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libsdl-org%2Fsetup-sdl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libsdl-org%2Fsetup-sdl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libsdl-org%2Fsetup-sdl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libsdl-org%2Fsetup-sdl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libsdl-org","download_url":"https://codeload.github.com/libsdl-org/setup-sdl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libsdl-org%2Fsetup-sdl/sbom","scorecard":{"id":588302,"data":{"date":"2025-08-11","repo":{"name":"github.com/libsdl-org/setup-sdl","commit":"f0131347757b3b78ed886b7f0c36b19e26aa2937"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Info: FSF or OSI recognized license: The Unlicense: LICENSE.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-xffm-g5w8-qvg7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T21:09:00.905Z","repository_id":175964695,"created_at":"2025-08-20T21:09:00.905Z","updated_at":"2025-08-20T21:09:00.905Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273665933,"owners_count":25146273,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-04T02:00:08.968Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","sdl","sdl2","sdl3"],"created_at":"2025-06-02T20:46:48.975Z","updated_at":"2025-09-04T19:45:02.800Z","avatar_url":"https://github.com/libsdl-org.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# setup-sdl\n\nThis GitHub action downloads, builds and installs SDL and its satellite libraries from source. \n\nBy caching the result, subsequent workflow runs will be fast(er).\n\n## Usage\n\n```yaml\nname: \"sdl\"\non: [push]\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: libsdl-org/setup-sdl@main\n        id: sdl\n        with:\n          install-linux-dependencies: true\n          version: 2-latest\n          version-sdl-image: 2-latest\n          \n      - name: 'Configure and build your project'\n        run: |\n          cmake -S . -B build\n          cmake --build build --verbose\n```\n\n## CMake\n\nThis action will build SDL using the default c/c++ toolchain, with CMake configuring the build.\n\nAn alternative build toolchain can be configured by using a [CMake toolchain file](https://cmake.org/cmake/help/latest/manual/cmake-toolchains.7.html).\n\n## versions\n\nUsing the `version` option, a SDL release can be used or the latest git tag:\n- `2-latest`: use the latest SDL2 release\n- `x.y.z`: use exactly a SDL `x.y.z` release (example: `2.8.1`)\n- `2-head`: use the latest SDL2 development commit\n- `3-latest`: use the latest SDL3 release\n- `3-head`: use the latest SDL3 development commit\n- `\u003cgit hash\u003e`: use an exact SDL git hash (repo: https://github.com/libsdl-org/SDL.git)\n\nUsing the `version-sdl-*` inputs, it is possible to install the satellite libraries.\nThey accept the same kind of input as `version`.\n\n## Options\n\nSee [action.yml](action.yml) for an overview of all options, and its defaults.\n\n## FAQ\n\n### My CMake project does not find SDL\n\nFirst, make sure you're looking for SDL using [`find_package`](https://cmake.org/cmake/help/latest/command/find_package.html):\n```cmake\n# SDL2\nfind_package(SDL2 REQUIRED CONFIG)\n\n# SDL3\nfind_package(SDL3 REQUIRED CONFIG)\n```\nIf CMake is still not able to find SDL, the minimum required CMake version of your project is probably less than 3.12.\nSince this version, CMake will also look for packages using environment variables as hints (see [CMP0074](https://cmake.org/cmake/help/latest/policy/CMP0074.html)).\n\nWhen bumping the minimum required CMake version is not desirable, here are 3 alternative methods (pick one!):\n- Add `-DCMAKE_PREFIX_PATH=${{ steps.sdl.outputs.prefix }}` to the CMake configure command (or add SDL's prefix to an already-existing `-DCMAKE_PREFIX_PATH=` argument)\n- Add `-DCMAKE_POLICY_DEFAULT_CMP0074=NEW` to the CMake configure command (this only works when the actual CMake version is \u003e= 3.12).\n- Append `...3.12` to the minimum CMake version - this enables the new behaviour for policies introduced in CMake 3.12 or earlier while preserving support for older versions.\n\n### `install-linux-dependencies` does things on non-Linux GitHub runners\n\nThis input will be renamed to `install-dependencies`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibsdl-org%2Fsetup-sdl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibsdl-org%2Fsetup-sdl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibsdl-org%2Fsetup-sdl/lists"}