Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/YOCKOW/Action-setup-swift
GitHub Action that sets up Swift.
https://github.com/YOCKOW/Action-setup-swift
setup-swift swift
Last synced: 3 months ago
JSON representation
GitHub Action that sets up Swift.
- Host: GitHub
- URL: https://github.com/YOCKOW/Action-setup-swift
- Owner: YOCKOW
- License: mit
- Created: 2019-09-20T07:23:33.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2024-06-20T03:01:21.000Z (5 months ago)
- Last Synced: 2024-07-18T03:44:24.481Z (4 months ago)
- Topics: setup-swift, swift
- Language: JavaScript
- Homepage:
- Size: 9.66 MB
- Stars: 22
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Action: setup-swift
This action sets up a Swift environment using [swiftenv](https://github.com/kylef/swiftenv).
# Usage
See [action.yml](action.yml)
## Simple Workflow
```yaml
steps:
- uses: actions/checkout@v2
- uses: YOCKOW/Action-setup-swift@v1
with:
swift-version: '5.3' # This value is passed to swiftenv without modification.
- run: swift test
```## Specify Swift Version with ".swift-version" file.
```yaml
steps:
- uses: actions/checkout@v2
- uses: YOCKOW/Action-setup-swift@v1
with:
swift-package-directory: "./my-swift-package" # Default is "."
# The content of ".swift-version" will be used to specify the version
# when `swift-version` input is lacked.
# Error occurs if ".swift-version" file is not found.
- run: swift test
```## Others
You can see another slightly complex sample at [the author's gist](https://gist.github.com/YOCKOW/352b3594bfcb2c06d953647adaf65e78).
# License
MIT License.
See "LICENSE.txt" for more information.