Skip to content
feather

GitHub Action

Setup Swift environment

v2.2.0 Latest version

Setup Swift environment

feather

Setup Swift environment

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

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup Swift environment

uses: sinoru/[email protected]

Learn more about this action in sinoru/actions-setup-swift

Choose a version

actions-setup-swift

Unit Tests Tests

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

  • optionally downloading a version of swift from swift.org using swiftenv.

Usage

See action.yml

Basic:

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