Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

Setup Swift environment

Actions
Setup a Swift environment and optionally downloading and adding it to the PATH
v2.0.1
Star (5)

actions-setup-swift

Unit Tests Tests

This action sets up a swift environment using swiftenv for use in actions by:

  • optionally downloading a version of swift from swift.org.
  • supports macOS, Linux runner.

Usage

See action.yml

Basic:

steps:
- uses: actions/checkout@v2
- uses: sinoru/actions-setup-swift@v2
  with:
    swift-version: '5.3.3' # Exact version of a Swift version to use
- run: swift build -v
- run: swift test -v

License

The scripts and documentation in this project are released under the MIT License

Setup Swift environment is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Setup a Swift environment and optionally downloading and adding it to the PATH
v2.0.1

Setup Swift environment is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.