Skip to content

Add "latest-stable" keyword

Compare
Choose a tag to compare
@maxim-lobanov maxim-lobanov released this 27 Aug 15:53
· 26 commits to master since this release

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/setup-xcode@v1.1
      with:
        xcode-version: latest-stable

Set the latest Xcode version including beta releases:

jobs:
  build:
    runs-on: macos-latest
    steps:
    - uses: maxim-lobanov/setup-xcode@v1.1
      with:
        xcode-version: latest

Set the specific version of Xcode:

jobs:
  build:
    runs-on: macos-latest
    steps:
    - uses: maxim-lobanov/setup-xcode@v1.1
      with:
        xcode-version: 11.4

License

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