项目作者: YOCKOW

项目描述 :
GitHub Action that sets up Swift.
高级语言: JavaScript
项目地址: git://github.com/YOCKOW/Action-setup-swift.git
创建时间: 2019-09-20T07:23:33Z
项目社区:https://github.com/YOCKOW/Action-setup-swift

开源协议:MIT License

下载


Action: setup-swift

This action sets up a Swift environment using swiftenv.

Usage

See action.yml

Simple Workflow

  1. steps:
  2. - uses: actions/checkout@v2
  3. - uses: YOCKOW/Action-setup-swift@v1
  4. with:
  5. swift-version: '5.3' # This value is passed to swiftenv without modification.
  6. - run: swift test

Specify Swift Version with “.swift-version” file.

  1. steps:
  2. - uses: actions/checkout@v2
  3. - uses: YOCKOW/Action-setup-swift@v1
  4. with:
  5. swift-package-directory: "./my-swift-package" # Default is "."
  6. # The content of ".swift-version" will be used to specify the version
  7. # when `swift-version` input is lacked.
  8. # Error occurs if ".swift-version" file is not found.
  9. - 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.