Skip to content

Commit e9a34d3

Browse files
authored
Enhance Xcode workflow with version and build steps
Updated the GitHub Actions workflow for Xcode to include Xcode version selection and improved build/test commands.
1 parent fea576e commit e9a34d3

File tree

1 file changed

+27
-11
lines changed

1 file changed

+27
-11
lines changed

.github/workflows/swift.yml

Lines changed: 27 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,37 @@
1-
# This workflow will build a xcode project
2-
31
name: xcode
42

53
on:
64
push:
7-
branches: [ "main" ]
5+
branches: ["main"]
86
pull_request:
9-
branches: [ "main" ]
7+
branches: ["main"]
108

119
jobs:
1210
build:
13-
1411
runs-on: macos-latest
15-
1612
steps:
17-
- uses: actions/checkout@v4
18-
- name: Build
19-
run: xcodebuild -scheme MiddleQuit
20-
- name: Run tests
21-
run: xcodetest -scheme MiddleQuit
13+
- uses: actions/checkout@v4
14+
15+
- name: Select Xcode 26.1
16+
uses: maxim-lobanov/setup-xcode@v1
17+
with:
18+
xcode-version: "26.1"
19+
20+
- name: Build
21+
run: |
22+
xcodebuild \
23+
-project Xcode/MiddleQuit.xcodeproj \
24+
-scheme MiddleQuit \
25+
-configuration Release \
26+
-sdk macosx \
27+
CODE_SIGNING_ALLOWED=NO \
28+
build
29+
30+
- name: Test
31+
run: |
32+
xcodebuild \
33+
-project Xcode/MiddleQuit.xcodeproj \
34+
-scheme MiddleQuit \
35+
-destination 'platform=macOS' \
36+
CODE_SIGNING_ALLOWED=NO \
37+
test

0 commit comments

Comments
 (0)