{"id":47264044,"url":"https://github.com/rarestype/swift-install-action","last_synced_at":"2026-04-02T21:01:09.633Z","repository":{"id":254755256,"uuid":"847447479","full_name":"rarestype/swift-install-action","owner":"rarestype","description":"install the swift compiler for mac and linux ci","archived":false,"fork":false,"pushed_at":"2026-04-01T04:22:26.000Z","size":18,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-04-01T06:58:16.586Z","etag":null,"topics":["continuous-deployment","continuous-integration","swift"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rarestype.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-08-25T21:02:10.000Z","updated_at":"2026-04-01T04:14:14.000Z","dependencies_parsed_at":"2024-08-25T22:43:50.020Z","dependency_job_id":"0ad916df-f856-42cd-936a-b0e07a9cea1c","html_url":"https://github.com/rarestype/swift-install-action","commit_stats":null,"previous_names":["tayloraswift/swift-install-action","rarestype/swift-install-action"],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/rarestype/swift-install-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rarestype%2Fswift-install-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rarestype%2Fswift-install-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rarestype%2Fswift-install-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rarestype%2Fswift-install-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rarestype","download_url":"https://codeload.github.com/rarestype/swift-install-action/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rarestype%2Fswift-install-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31316101,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["continuous-deployment","continuous-integration","swift"],"created_at":"2026-03-15T02:29:43.956Z","updated_at":"2026-04-02T21:01:09.628Z","avatar_url":"https://github.com/rarestype.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Swift installation action\n\nSupported runners:\n\n- macOS\n- Linux\n\nIf the action completes successfully, it sets the environment variable `SWIFT_INSTALLATION` to the path to the toolchain resources. This is the directory that would normally be named `usr` in a Swift installation.\n\n### Configuration\n\nOther GitHub actions that install the Swift toolchain tend to suffer from deployment lag when new versions of Swift are released. This action is designed to be more flexible and to allow installing toolchains by speculatively building a URL.\n\nThe action requires two inputs, `swift-prefix` and `swift-id`. Their values should be destructured from the URL of the Swift toolchain download like this:\n\n#### macOS\n\n```bash\n'https://download.swift.org/' swift-prefix '/' swift-id '-osx.pkg'\n```\n\n#### Linux (all distributions)\n\n```bash\n'https://download.swift.org/' swift-prefix '/' swift-id '.tar.gz'\n```\n\n\n## Usage examples\n\n### Ubuntu 24.04 with Swift 6.0\n\n```yaml\nlinux:\n    runs-on: ubuntu-24.04\n    name: Ubuntu 24.04\n\n    steps:\n        -   name: Install Swift\n            uses: rarestype/swift-install-action@master\n            with:\n                swift-prefix: \"swift-6.0-release/ubuntu2404/swift-6.0-RELEASE\"\n                swift-id: \"swift-6.0-RELEASE-ubuntu24.04\"\n\n        -   name: Check Swift\n            run: swift --version\n```\n\n### macOS with Swift 6.0\n\n```yaml\nmacos:\n    runs-on: macos-14\n    name: macOS\n\n    steps:\n        -   name: Install Swift\n            uses: rarestype/swift-install-action@master\n            with:\n                swift-prefix: \"swift-6.0-release/xcode/swift-6.0-RELEASE\"\n                swift-id: \"swift-6.0-RELEASE\"\n\n        -   name: Check Swift\n            run: swift --version\n```\n\nPlease note, on macOS, the `swift-id` does not include a distribution name.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frarestype%2Fswift-install-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frarestype%2Fswift-install-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frarestype%2Fswift-install-action/lists"}