An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# actions-setup-swift

[![Unit Tests](https://github.com/sinoru/actions-setup-swift/actions/workflows/units.yml/badge.svg)](https://github.com/sinoru/actions-setup-swift/actions/workflows/test.yml)
[![Tests](https://github.com/sinoru/actions-setup-swift/actions/workflows/tests.yml/badge.svg)](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)