All Projects → fwal → setup-swift

fwal / setup-swift

Licence: MIT License
GitHub Action that setup a Swift environment

Programming Languages

typescript
32286 projects
shell
77523 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to setup-swift

overview
Automate your workflows with GitHub actions for MATLAB.
Stars: ✭ 40 (-64.91%)
Mutual labels:  ci, github-actions
AndroidFastlaneCICD
📱A sample repository to demonstrate the Automate publishing🚀 app to the Google Play Store with GitHub Actions⚡+ Fastlane🏃.
Stars: ✭ 82 (-28.07%)
Mutual labels:  ci, github-actions
bx-github-ci
This tutorial provides one example on how a CI (Continuous Integration) workflow with the IAR Build Tools for Linux can be set up on GitHub. The IAR Build Tools on Linux are available for Arm, RISC-V and Renesas (RH850, RL78 and RX).
Stars: ✭ 20 (-82.46%)
Mutual labels:  ci, github-actions
actions
A Collection of GitHub Actions
Stars: ✭ 91 (-20.18%)
Mutual labels:  ci, github-actions
setup-scheme
Github Actions CI / CD setup for Scheme
Stars: ✭ 13 (-88.6%)
Mutual labels:  ci, github-actions
mylib
Шаблон кросплатформенного CMake-проекта для языка C++ 🇬🇧 Modern CMake crossplatform project template for C++
Stars: ✭ 49 (-57.02%)
Mutual labels:  ci, github-actions
prettier
🔨 Native, blazingly-fast Prettier CLI on Github Actions
Stars: ✭ 19 (-83.33%)
Mutual labels:  ci, github-actions
Act
Run your GitHub Actions locally 🚀
Stars: ✭ 19,915 (+17369.3%)
Mutual labels:  ci, github-actions
release-helper
🤖 A GitHub Action that help you publish release.
Stars: ✭ 27 (-76.32%)
Mutual labels:  ci, github-actions
action-junit-report
Reports junit test results as GitHub Pull Request Check
Stars: ✭ 103 (-9.65%)
Mutual labels:  ci, github-actions
setup-graalvm
No description or website provided.
Stars: ✭ 63 (-44.74%)
Mutual labels:  ci, github-actions
install-swift
GitHub Action to install a version of Swift 🏎
Stars: ✭ 23 (-79.82%)
Mutual labels:  ci, github-actions
iOSDC2020-Talk-Sample
iOSDC 2020「GitHub ActionsでiOSアプリをCIする個人的ベストプラクティス」レギュラートークのサンプルリポジトリ
Stars: ✭ 35 (-69.3%)
Mutual labels:  ci, github-actions
wordpress-skeleton
A base repository structure for rtCamp's WordPress sites, pre-configured to use Github Actions
Stars: ✭ 32 (-71.93%)
Mutual labels:  ci, github-actions
changed-files
Github action to retrieve all (added, copied, modified, deleted, renamed, type changed, unmerged, unknown) files and directories.
Stars: ✭ 733 (+542.98%)
Mutual labels:  ci, github-actions
branch-protection-bot
A bot tool to disable and re-enable "Include administrators" option in branch protection
Stars: ✭ 57 (-50%)
Mutual labels:  ci, github-actions
CI-Utils
Utilities for running Common Lisp on CI platforms
Stars: ✭ 18 (-84.21%)
Mutual labels:  ci, github-actions
Cml
♾️ CML - Continuous Machine Learning | CI/CD for ML
Stars: ✭ 2,843 (+2393.86%)
Mutual labels:  ci, github-actions
xray-action
... a GitHub action to import test results into "Xray" - A complete Test Management tool for Jira.
Stars: ✭ 16 (-85.96%)
Mutual labels:  ci, github-actions
update-container-description-action
github action to update a Docker Hub, Quay or Harbor repository description from a README file
Stars: ✭ 20 (-82.46%)
Mutual labels:  ci, github-actions

Setup Swift

GitHub Action Supports macOS and Ubuntu Swift 5.6 Latest release

GitHub Action that will setup a Swift environment with a specific version. Works on both Ubuntu and macOS runners.

Usage

To run the action with the latest swift version available, simply add the action as a step in your workflow:

- uses: fwal/setup-swift@v1

After the environment is configured you can run swift commands using the standard run step:

- uses: fwal/setup-swift@v1
- name: Get swift version
  run: swift --version # Swift 5.6

A specific Swift version can be set using the swift-version input:

- uses: fwal/setup-swift@v1
  with:
    swift-version: "5.1.0"
- name: Get swift version
  run: swift --version # Swift 5.1.0

Works perfect together with matrixes:

name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
  matrix:
    os: [ubuntu-latest, macos-latest]
    swift: ["5.4.3", "5.2.4"]
steps:
- uses: fwal/setup-swift@v1
  with:
    swift-version: ${{ matrix.swift }}
- name: Get swift version
  run: swift --version

Note about versions

This project uses strict semantic versioning to determine what version of Swift to configure. This differs slightly from the official convention used by Swift.

For example, Swift is available as version 5.1 but this will be interpreted as a version range of 5.1.X where X is the latest patch version available for that major and minor version.

In other words specifying...

  • "5.1.0" will resolve to version 5.1
  • "5.1" will resolve to latest patch version (aka 5.1.1)
  • "5" will resolve to latest minor and patch version (aka 5.5)

Caveats

YAML interprets eg. 5.0 as a float, this action will then interpret that as 5 which will result in eg. Swift 5.5 being resolved. Quote your inputs! Thus:

- uses: fwal/setup-swift@v1
  with:
    swift-version: '5.0'

Not:

- uses: fwal/setup-swift@v1
  with:
    swift-version: 5.0

Legal

Uses MIT license. The Swift logo is a trademark of Apple Inc.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].