{"id":13496348,"url":"https://github.com/compnerd/gha-setup-swift","last_synced_at":"2026-03-10T23:20:41.021Z","repository":{"id":44263403,"uuid":"410353825","full_name":"compnerd/gha-setup-swift","owner":"compnerd","description":"Setup Swift (on Windows) on GitHub Actions Builders","archived":false,"fork":false,"pushed_at":"2025-01-06T16:29:26.000Z","size":46,"stargazers_count":32,"open_issues_count":8,"forks_count":13,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-12T18:03:10.492Z","etag":null,"topics":["github-actions","swift","windows"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/compnerd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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}},"created_at":"2021-09-25T18:38:37.000Z","updated_at":"2025-01-06T16:29:30.000Z","dependencies_parsed_at":"2024-05-02T21:45:07.717Z","dependency_job_id":"302dac2d-af18-4683-b530-51c852d2e261","html_url":"https://github.com/compnerd/gha-setup-swift","commit_stats":{"total_commits":15,"total_committers":4,"mean_commits":3.75,"dds":"0.19999999999999996","last_synced_commit":"df2a40e8ddcb941369abe8bc3db8852da49c1553"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compnerd%2Fgha-setup-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compnerd%2Fgha-setup-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compnerd%2Fgha-setup-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/compnerd%2Fgha-setup-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/compnerd","download_url":"https://codeload.github.com/compnerd/gha-setup-swift/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246080702,"owners_count":20720573,"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","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":["github-actions","swift","windows"],"created_at":"2024-07-31T19:01:46.534Z","updated_at":"2025-12-30T00:28:17.657Z","avatar_url":"https://github.com/compnerd.png","language":null,"readme":"# gha-setup-swift\nSetup Swift (on Windows) on GitHub Actions Builders\n\nAutomates installation of the Swift toolchain for Windows hosts on GitHub Actions runners.\n\n\u003e [!NOTE]\n\u003e Windows requires Swift 5.4.2+\n\n## Usage\n\n* Sample workflow using official Swift releases\n\n```yaml\non: [pull_request]\n\njobs:\n  windows:\n    runs-on: windows-latest\n    steps:\n      - uses: compnerd/gha-setup-swift@main\n        with:\n          swift-version: swift-5.5-release\n          swift-build: 5.5-RELEASE\n\n      - uses: actions/checkout@v2\n      - run: swift build\n      - run: swift test\n```\n\n* Sample workflow using a custom Swift toolchain from a Github repository\n\n```yaml\non: [pull_request]\n\njobs:\n  windows:\n    runs-on: windows-latest\n    steps:\n      - uses: compnerd/gha-setup-swift@main\n        with:\n          release-tag-name: \"20230530.2\"\n          github-repo: mycompany/swift-toolchain-build\n          release-asset-name: installer-amd64.exe\n\n      - uses: actions/checkout@v2\n      - run: swift build\n      - run: swift test\n```\n\n### Parameters\n\n#### When using official Swift releases:\n  - `swift-version`: (**Note:** this is not a git branch name) the Swift \"version\" to be installed. This may be either a pre-release branch (e.g. `swift-5.5-branch`), a release branch (e.g. `swift-5.5-release`) or the development branch (`swift-development`).\n  - `swift-build`: (**Note:** this is not a git tag name) the actual build tag to install, minus the \"`swift-`\" prefix. May indicate a release snapshot (e.g. `5.5-DEVELOPMENT-SNAPSHOT-2021-09-18-a`), development snapshot  (e.g. `DEVELOPMENT-SNAPSHOT-2021-09-28-a`), or a release (e.g. `5.5-RELEASE`).\n\n#### When using Swift builds from a Github repository release:\n- `github-repo`: Github repo in \"owner/repo\" format\n- `release-tag-name`: Release tag name, can be found in `github.com/\u003cowner\u003e/\u003crepo\u003e/releases`\n- `release-asset-name`: Asset name for the Swift installer executable in the release\n- `github-token`: Optional Github token for fetching a release from a private repository\n\n#### Additional Options:\n- `update-sdk-modules`: Update SDK module definitions to latest version after installation (Windows only, default: false)\n- `installer-args`: Additional arguments to pass to the installer, space-delimited\n\n#### Deprecated Parameters (will be removed in a future version):\n  - `branch`: **[DEPRECATED]** Use `swift-version` instead.\n  - `tag`: **[DEPRECATED]** Use `swift-build` instead.\n","funding_links":[],"categories":["Others"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompnerd%2Fgha-setup-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcompnerd%2Fgha-setup-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcompnerd%2Fgha-setup-swift/lists"}