{"id":47609430,"url":"https://github.com/bytecodealliance/setup-wasi-sdk-action","last_synced_at":"2026-04-01T19:55:29.763Z","repository":{"id":331024657,"uuid":"1113975359","full_name":"bytecodealliance/setup-wasi-sdk-action","owner":"bytecodealliance","description":"GitHub action to install wasi-sdk","archived":false,"fork":false,"pushed_at":"2026-02-25T20:25:04.000Z","size":34,"stargazers_count":0,"open_issues_count":4,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-03-31T00:38:36.589Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bytecodealliance.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-10T18:13:36.000Z","updated_at":"2026-02-25T20:25:06.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/bytecodealliance/setup-wasi-sdk-action","commit_stats":null,"previous_names":["bytecodealliance/setup-wasi-sdk-action"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bytecodealliance/setup-wasi-sdk-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytecodealliance%2Fsetup-wasi-sdk-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytecodealliance%2Fsetup-wasi-sdk-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytecodealliance%2Fsetup-wasi-sdk-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytecodealliance%2Fsetup-wasi-sdk-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bytecodealliance","download_url":"https://codeload.github.com/bytecodealliance/setup-wasi-sdk-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bytecodealliance%2Fsetup-wasi-sdk-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31291307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-01T13:12:26.723Z","status":"ssl_error","status_checked_at":"2026-04-01T13:12:25.102Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-04-01T19:55:27.460Z","updated_at":"2026-04-01T19:55:29.753Z","avatar_url":"https://github.com/bytecodealliance.png","language":"Python","readme":"# `setup-wasi-sdk-action`\n\nA [Bytecode Alliance](https://bytecodealliance.org/) project\n\n[![Cross-platform](https://github.com/bytecodealliance/setup-wasi-sdk-action/actions/workflows/cross-platform.yml/badge.svg?branch=main)](https://github.com/bytecodealliance/setup-wasi-sdk-action/actions/workflows/cross-platform.yml)\n[![CMake-compatible](https://github.com/bytecodealliance/setup-wasi-sdk-action/actions/workflows/cmake.yml/badge.svg?branch=main)](https://github.com/bytecodealliance/setup-wasi-sdk-action/actions/workflows/cmake.yml)\n[![Environment-safe](https://github.com/bytecodealliance/setup-wasi-sdk-action/actions/workflows/env-safe.yml/badge.svg?branch=main)](https://github.com/bytecodealliance/setup-wasi-sdk-action/actions/workflows/env-safe.yml)\n[![Unit tests](https://github.com/bytecodealliance/setup-wasi-sdk-action/actions/workflows/unit-tests.yml/badge.svg?branch=main)](https://github.com/bytecodealliance/setup-wasi-sdk-action/actions/workflows/unit-tests.yml)\n\nThis GitHub Action will install the [WASI SDK] toolchain for compiling to WebAssembly on a GitHub\nrunner:\n- Downloads and installs the specified version of WASI SDK (see [releases])\n- Optionally adds WASI SDK to the GitHub runner `PATH`\n- Sets up [environment variables] and [output variables]\n\n[WASI SDK]: https://github.com/WebAssembly/wasi-sdk\n[releases]: https://github.com/WebAssembly/wasi-sdk/releases\n[environment variables]: #environment-variables\n[output variables]: #output-variables\n\n### Usage\n\n```yaml\n- uses: bytecodealliance/setup-wasi-sdk-action@v1\n# Now, use `clang` or `$CC` to compile C/C++ to WebAssembly:\n- run: $CC hello.c -o hello.wasm\n```\n\nFor more advanced usage, see the following examples:\n- [Use with CMake](.github/workflows/cmake.yml)\n- [Use without overriding environment](.github/workflows/env-safe.yml)\n\n### Inputs\n\n| Input          | Description                                | Required | Default                       |\n| -------------- | -------------------------------------------| -------- | ----------------------------- |\n| `version`      | WASI SDK version to install (e.g., `25`)   | No       | `latest`                      |\n| `install-path` | Directory to install WASI SDK to           | No       | `$RUNNER_TOOL_CACHE/wasi-sdk` |\n| `add-to-path`  | Add WASI SDK `bin` directory to the `PATH` | No       | `true`                        |\n| `github-token` | GitHub token for API requests              | No       | `${{ github.token }}`         |\n\nNote that passing `latest` as the `version` will attempt to retrieve the latest [release\ntag][releases]. See GitHub's [variables reference] for a description of `RUNNER_TOOL_CACHE`; other\n`setup-*` actions store their artifacts here.\n\n[variables reference]: https://docs.github.com/en/actions/reference/workflows-and-actions/variables\n\n### Outputs\n\n| Output             | Description                              |\n| ------------------ | ---------------------------------------- |\n| `wasi-sdk-path`    | Path to the installed WASI SDK toolchain |\n| `wasi-sdk-version` | Version of WASI SDK that was installed   |\n| `clang-path`       | Path to the `clang` executable           |\n| `sysroot-path`     | Path to the WASI `sysroot`               |\n\n### Environment Variables\n\nThe action always sets the following environment variables:\n\n- `WASI_SDK_PATH`: Path to the WASI SDK installation\n- `WASI_SDK_VERSION`: Version of WASI SDK that was installed\n\nWhen `add-to-path` is `true` (the default), the action also adds the WASI SDK `bin` directory to\nthe GitHub runner `PATH` and sets:\n\n- `CC`: Clang compiler with WASI sysroot configured\n- `CXX`: Clang++ compiler with WASI sysroot configured\n\n### Platform Support\n\nThis action should be usable on all GitHub runners; open an [issue] if this is not the case.\n\n[issue]: https://github.com/bytecodealliance/setup-wasi-sdk-action/issues\n\n| OS      | Architecture | Support |\n| ------- | ------------ | ------- |\n| Linux   | x86_64       | ✅      |\n| Linux   | arm64        | ✅      |\n| macOS   | Any          | ✅      |\n| Windows | Any          | ✅      |\n\n### License\n\n`setup-wasi-sdk-action` is released under the [Apache License Version 2.0][license]. By contributing to\nthe project, you agree to the license and copyright terms therein and release your contribution\nunder these terms.\n\n[license]: LICENSE\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytecodealliance%2Fsetup-wasi-sdk-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbytecodealliance%2Fsetup-wasi-sdk-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbytecodealliance%2Fsetup-wasi-sdk-action/lists"}