Skip to content

Commit 12e14fe

Browse files
committed
Enforcing Xcode version by creating a non-required variable and setting its default value to 16.1
1 parent a67a9a8 commit 12e14fe

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/ios-actions.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ on:
2323
default: false
2424
required: false
2525
type: boolean
26+
XCODE_VERSION:
27+
description: "Xcode version to use (e.g., 15.4, 16.1)"
28+
default: '16.1'
29+
required: false
30+
type: string
2631
secrets:
2732
MAPBOX_ACCESS_TOKEN:
2833
required: true
@@ -70,6 +75,11 @@ jobs:
7075
env:
7176
MAPBOX_DOWNLOAD_TOKEN: ${{ secrets.MAPBOX_DOWNLOAD_TOKEN || secrets.ENV_MAPBOX_DOWNLOAD_TOKEN }}
7277

78+
- name: Select Xcode ${{ inputs.XCODE_VERSION }}
79+
uses: maxim-lobanov/setup-xcode@v1
80+
with:
81+
xcode-version: ${{ inputs.XCODE_VERSION }}
82+
7383
- name: Setup node ${{ inputs.NVMRC }}
7484
uses: actions/setup-node@v3.5.1
7585
with:

0 commit comments

Comments
 (0)