Skip to content

Commit ec8eb35

Browse files
committed
ci: fix build workflow — remove deprecated setup-xcode action, update to macos-15
1 parent e0ec9b2 commit ec8eb35

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,24 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: macos-14
12-
11+
runs-on: macos-15
12+
1313
steps:
1414
- uses: actions/checkout@v4
15-
16-
- name: Set up Xcode
17-
uses: maxim-lobanov/setup-xcode@v1
18-
with:
19-
xcode-version: latest-stable
20-
15+
2116
- name: Build
2217
run: |
2318
XCODEPROJ=$(find . -name "*.xcodeproj" -maxdepth 2 | head -1)
2419
if [ -z "$XCODEPROJ" ]; then
2520
echo "No Xcode project found"
2621
exit 1
2722
fi
28-
23+
2924
SCHEME=$(xcodebuild -list -project "$XCODEPROJ" 2>/dev/null | awk '/Schemes:/{found=1; next} found && NF{print; exit}' | xargs)
3025
if [ -z "$SCHEME" ]; then
3126
SCHEME=$(basename "$XCODEPROJ" .xcodeproj)
3227
fi
33-
28+
3429
echo "Building scheme: $SCHEME"
3530
xcodebuild build \
3631
-project "$XCODEPROJ" \

0 commit comments

Comments
 (0)