You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`xcode-version`| Specify the Xcode version to use | - `latest` or<br> - `latest-stable` or<br> - [SemVer](https://semver.org/) string |
9
+
|`xcode-version`| Specify the Xcode version to use | - `latest` or<br> - `latest-stable` or<br> - [SemVer](https://semver.org/) string or<br> - [SemVer](https://semver.org/)`-beta`|
10
10
11
11
**Notes:**
12
12
-`latest-stable` points to the latest stable version of Xcode
13
13
-`latest`*includes* beta releases that GitHub actions has installed
14
14
- SemVer examples: `10`, `11.4`, `12.0`, `11.7.0`, `^11.7.0` (find more examples in [SemVer cheatsheet](https://devhints.io/semver))
15
+
-`-beta` suffix after SemVer will only select among beta releases that GitHub actions has installed
15
16
- If sets a specific version, wraps it to single quotes in YAML like `'12.0'` to pass it as string because GitHub trimmes trailing `.0` from numbers
16
17
17
18
# Usage
19
+
18
20
Set the latest stable Xcode version:
19
21
```
20
22
jobs:
@@ -37,7 +39,7 @@ jobs:
37
39
xcode-version: latest
38
40
```
39
41
40
-
Set the specific version of Xcode:
42
+
Set the specific stable version of Xcode:
41
43
```
42
44
jobs:
43
45
build:
@@ -47,5 +49,16 @@ jobs:
47
49
with:
48
50
xcode-version: '12.0'
49
51
```
52
+
53
+
Set the specific beta version of Xcode:
54
+
```
55
+
jobs:
56
+
build:
57
+
runs-on: macos-latest
58
+
steps:
59
+
- uses: maxim-lobanov/setup-xcode@v1
60
+
with:
61
+
xcode-version: '12.0-beta'
62
+
```
50
63
# License
51
64
The scripts and documentation in this project are released under the [MIT License](LICENSE)
0 commit comments