8000 Swift Setup · Actions · GitHub Marketplace · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Swift Setup

Actions
Setting Swift up
v1.1.24
Latest
Star (23)

Action: setup-swift

This action sets up a Swift environment using swiftenv.

Usage

See action.yml

Simple Workflow

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.

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.

License

MIT License.
See "LICENSE.txt" for more information.

Swift Setup 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

Setting Swift up
v1.1.24
Latest

Swift Setup 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.

0