Skip to content

Releases: maxim-lobanov/setup-xcode

Add "latest-stable" keyword

27 Aug 15:53
Compare
Choose a tag to compare

setup-xcode

This action is intended to switch between pre-installed versions of Xcode for macOS images in GitHub Actions.

The list of all available versions can be found in virtual-environments repository.

Available parameters

Argument Description Format
xcode-version Specify the Xcode version to use latest, latest-stable or any semver string

Examples: latest, latest-stable, 10, 11.4, 11.4.0, ^11.4.0
Note:

  • latest-stable points to the latest stable version of Xcode
  • latest includes beta releases that GitHub actions has installed.

Usage

Set the latest stable Xcode version:

jobs:
  build:
    runs-on: macos-latest
    steps:
    - uses: maxim-lobanov/[email protected]
      with:
        xcode-version: latest-stable

Set the latest Xcode version including beta releases:

jobs:
  build:
    runs-on: macos-latest
    steps:
    - uses: maxim-lobanov/[email protected]
      with:
        xcode-version: latest

Set the specific version of Xcode:

jobs:
  build:
    runs-on: macos-latest
    steps:
    - uses: maxim-lobanov/[email protected]
      with:
        xcode-version: 11.4

License

The scripts and documentation in this project are released under the MIT License

First implementation of action

01 May 11:00
6bb546d
Compare
Choose a tag to compare

setup-xcode

This action is intended to switch between pre-installed versions of Xcode for macOS images in GitHub Actions.

The list of all available versions can be found in virtual-environments repository.

Available parameters

Argument Description Format
xcode-version Specify the Xcode version to use latest keyword or any semver string

Examples: latest, 10, 11.4, 11.4.0, ^11.4.0

Usage

name: CI
on: [push]
jobs:
  build:
    name: Set 
    runs-on: macos-latest
    steps:
    - name: setup-xcode
      uses: maxim-lobanov/[email protected]
      with:
        xcode-version: 11.4 # set the latest available Xcode 11.4.*

    - name: setup-latest-xcode
      uses: maxim-lobanov/[email protected]
      with:
        xcode-version: latest # set the latest available Xcode 11.4.*

License

The scripts and documentation in this project are released under the MIT License