https://github.com/sinoru/actions-setup-swift
Set up your GitHub Actions workflow with a specific version of swift
https://github.com/sinoru/actions-setup-swift
continuous-integration github-actions linux macos swift
Last synced: 2 months ago
JSON representation
Set up your GitHub Actions workflow with a specific version of swift
- Host: GitHub
- URL: https://github.com/sinoru/actions-setup-swift
- Owner: sinoru
- License: mit
- Created: 2021-03-02T04:47:43.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2023-03-13T15:57:40.000Z (about 3 years ago)
- Last Synced: 2024-05-01T21:21:17.922Z (almost 2 years ago)
- Topics: continuous-integration, github-actions, linux, macos, swift
- Language: JavaScript
- Homepage:
- Size: 854 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# actions-setup-swift
[](https://github.com/sinoru/actions-setup-swift/actions/workflows/test.yml)
[](https://github.com/sinoru/actions-setup-swift/actions/workflows/test.yml)
This action sets up a swift environment for use in actions by:
- optionally downloading a version of swift from swift.org using [swiftenv](https://github.com/kylef/swiftenv).
# Usage
See [action.yml](action.yml)
Basic:
```yaml
steps:
- uses: actions/checkout@v3
- uses: sinoru/actions-setup-swift@v2
with:
swift-version: '5.6.1' # Exact version of a Swift version to use
- run: swift build
- run: swift test
```
# License
The scripts and documentation in this project are released under the [MIT License](LICENSE)