Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

GitHub Action that sets up Swift.

License

Notifications You must be signed in to change notification settings

scoremedia-archived/Action-setup-swift

 
 

Repository files navigation

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.

About

GitHub Action that sets up Swift.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 38.5%
  • TypeScript 31.7%
  • Python 22.2%
  • Swift 5.6%
  • Shell 2.0%