{"id":17690538,"url":"https://github.com/slashmo/install-swift","last_synced_at":"2025-04-13T02:08:10.600Z","repository":{"id":42628640,"uuid":"428792340","full_name":"slashmo/install-swift","owner":"slashmo","description":"GitHub Action to install a version of Swift 🏎","archived":false,"fork":false,"pushed_at":"2024-06-26T11:35:56.000Z","size":22,"stargazers_count":25,"open_issues_count":14,"forks_count":7,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-13T02:07:30.501Z","etag":null,"topics":["ci","github-actions","install-swift","swift"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/slashmo.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}},"created_at":"2021-11-16T19:46:28.000Z","updated_at":"2025-01-07T02:39:58.000Z","dependencies_parsed_at":"2024-06-19T01:43:16.393Z","dependency_job_id":"9e0309dc-2cc0-40c1-856d-c3ebbc2c6d3e","html_url":"https://github.com/slashmo/install-swift","commit_stats":{"total_commits":14,"total_committers":3,"mean_commits":4.666666666666667,"dds":0.5,"last_synced_commit":"3d24c9f433b3c6b4a64589dd6e93da27943ff042"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slashmo%2Finstall-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slashmo%2Finstall-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slashmo%2Finstall-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slashmo%2Finstall-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slashmo","download_url":"https://codeload.github.com/slashmo/install-swift/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248654095,"owners_count":21140236,"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":["ci","github-actions","install-swift","swift"],"created_at":"2024-10-24T11:51:08.007Z","updated_at":"2025-04-13T02:08:10.562Z","avatar_url":"https://github.com/slashmo.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# install-swift\n\nThis action allows installing Swift toolchains, with support for both release and development versions.\n\n## Usage\n\n### Inputs\n\n- `version` - The Swift version you want to install. This may either be a release version like `5.5`, a trunk\ndevelopment snapshot like `swift-DEVELOPMENT-SNAPSHOT-2021-11-12-a`, or a snapshot of the upcoming release, e.g.\n`swift-5.6-DEVELOPMENT-SNAPSHOT-2022-01-09-a`.\n\n### Example\n\n```yaml\n- name: Install Swift\n  uses: slashmo/install-swift@v0.1.0\n  with:\n    version: 5.5\n```\n\nAfter adding this step, all following steps in this job will automatically use the newly installed Swift version:\n\n```yaml\n- name: Run Tests\n  run: swift test # \u003c-- uses Swift 5.5\n```\n\n### Multiple Swift Versions\n\nIn case you want to run your GitHub Actions workflow using different versions of Swift, define a\n[GitHub Action's matrix](https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#jobsjob_idstrategymatrix)\nto spawn multiple instances of the same job:\n\n```yaml\njobs:\n  test:\n    name: Run Tests\n    strategy:\n      matrix:\n        swift: [5.5, swift-DEVELOPMENT-SNAPSHOT-2021-11-12-a, swift-5.6-DEVELOPMENT-SNAPSHOT-2022-01-09-a]\n        os: [ubuntu-18.04, ubuntu-20.04, macos-latest]\n        fail-fast: false\n    runs-on: ${{ matrix.os }}\n    steps:\n    - name: Install Swift\n      uses: slashmo/install-swift@v0.1.0\n      with:\n        version: ${{ matrix.swift }}\n    - name: Checkout\n      uses: actions/checkout@v2\n    - name: Run Tests\n      run: swift test\n```\n\nThe action will automatically detect the Ubuntu version and install the correct toolchain.\n\n### Caching\n\n`install-swift` automatically caches toolchains based on the [version input](#inputs) and the detected Ubuntu version.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslashmo%2Finstall-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslashmo%2Finstall-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslashmo%2Finstall-swift/lists"}