Skip to content

Commit

Permalink
Update format action to use Xcode 16 (#3548)
Browse files Browse the repository at this point in the history
  • Loading branch information
bugix authored Jan 9, 2025
1 parent eab3982 commit e2336cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,16 @@ concurrency:
jobs:
swift_format:
name: swift-format
runs-on: macos-13
runs-on: macos-15
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Select Xcode 14.3
run: sudo xcode-select -s /Applications/Xcode_14.3.app
- name: Install swift-format
run: brew install swift-format
- name: Select Xcode 16.2
run: sudo xcode-select -s /Applications/Xcode_16.2.app
- name: Format
run: make format
- uses: stefanzweifel/git-auto-commit-action@v4
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Run swift-format
branch: 'main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ format:
-path '*/Documentation.docc' -prune -o \
-name '*.swift' \
-not -path '*/.*' -print0 \
| xargs -0 swift format --ignore-unparsable-files --in-place
| xargs -0 xcrun swift-format --ignore-unparsable-files --in-place

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

Expand Down

0 comments on commit e2336cc

Please sign in to comment.