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 Xcodelatest
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