Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Node.js from 16 to 20 #69

Merged
merged 4 commits into from Sep 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
23 changes: 22 additions & 1 deletion .github/workflows/e2e.yml
Expand Up @@ -34,7 +34,28 @@ jobs:
runs-on: macos-12
strategy:
matrix:
xcode-version: ['13.2.1', '13.4', '14.0.0', '14', latest, latest-stable]
xcode-version: ['13.2.1', '13.4', '14.0.1', '14', '14.2', latest, latest-stable]
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v3

- uses: ./
name: Setup Xcode
id: setup-xcode
with:
xcode-version: ${{ matrix.xcode-version }}
- name: Print output variables
run: |
echo "Version: ${{ steps.setup-xcode.outputs.version }}"
echo "Path: ${{ steps.setup-xcode.outputs.path }}"

versions-macOS-13:
name: macOS 13
runs-on: macos-13
strategy:
matrix:
xcode-version: ['14', '14.2', '14.3.1', latest, latest-stable]
fail-fast: false
steps:
- name: Checkout
Expand Down
12 changes: 6 additions & 6 deletions README.md
@@ -1,7 +1,7 @@
# 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 [runner-images](https://github.com/actions/runner-images/blob/master/images/macos/macos-12-Readme.md#xcode) repository.
The list of all available versions can be found in [runner-images](https://github.com/actions/runner-images/blob/master/images/macos/macos-13-Readme.md#xcode) repository.

# Available parameters
| Argument | Description | Format |
Expand All @@ -11,7 +11,7 @@ The list of all available versions can be found in [runner-images](https://githu
**Notes:**
- `latest-stable` points to the latest stable version of Xcode
- `latest` *includes* beta releases that GitHub actions has installed
- SemVer examples: `10`, `11.4`, `12.0`, `11.7.0`, `^11.7.0` (find more examples in [SemVer cheatsheet](https://devhints.io/semver))
- SemVer examples: `14`, `14.1`, `14.3.1`, `^14.3.0` (find more examples in [SemVer cheatsheet](https://devhints.io/semver))
- `-beta` suffix after SemVer will only select among beta releases that GitHub actions has installed
- 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

Expand Down Expand Up @@ -43,22 +43,22 @@ Set the specific stable version of Xcode:
```
jobs:
build:
runs-on: macos-11
runs-on: macos-13
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '13.0'
xcode-version: '14.3.1'
```

Set the specific beta version of Xcode:
```
jobs:
build:
runs-on: macos-11
runs-on: macos-13
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '13.0-beta'
xcode-version: '15.0-beta'
```
# License
The scripts and documentation in this project are released under the [MIT License](LICENSE)
2 changes: 1 addition & 1 deletion action.yml
Expand Up @@ -7,7 +7,7 @@ inputs:
required: false
default: latest
runs:
using: 'node16'
using: 'node20'
main: 'dist/index.js'
branding:
icon: 'code'
Expand Down