Skip to content

Commit e2336cc

Browse files
authored
Update format action to use Xcode 16 (#3548)
1 parent eab3982 commit e2336cc

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

.github/workflows/format.yml

+6-8
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,16 @@ concurrency:
1212
jobs:
1313
swift_format:
1414
name: swift-format
15-
runs-on: macos-13
15+
runs-on: macos-15
16+
permissions:
17+
contents: write
1618
steps:
1719
- uses: actions/checkout@v4
18-
- name: Select Xcode 14.3
19-
run: sudo xcode-select -s /Applications/Xcode_14.3.app
20-
- name: Install swift-format
21-
run: brew install swift-format
20+
- name: Select Xcode 16.2
21+
run: sudo xcode-select -s /Applications/Xcode_16.2.app
2222
- name: Format
2323
run: make format
24-
- uses: stefanzweifel/git-auto-commit-action@v4
24+
- uses: stefanzweifel/git-auto-commit-action@v5
2525
with:
2626
commit_message: Run swift-format
2727
branch: 'main'
28-
env:
29-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ format:
6464
-path '*/Documentation.docc' -prune -o \
6565
-name '*.swift' \
6666
-not -path '*/.*' -print0 \
67-
| xargs -0 swift format --ignore-unparsable-files --in-place
67+
| xargs -0 xcrun swift-format --ignore-unparsable-files --in-place
6868

6969
.PHONY: build-for-library-evolution format warm-simulator xcodebuild xcodebuild-raw
7070

0 commit comments

Comments
 (0)