diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml new file mode 100644 index 0000000..c43587a --- /dev/null +++ b/.github/workflows/format.yml @@ -0,0 +1,25 @@ +name: Format + +on: + push: + branches: + - main + +jobs: + swift_format: + name: swift-format + runs-on: macOS-14 + steps: + - uses: actions/checkout@v4 + - name: Xcode Select + run: sudo xcode-select -s /Applications/Xcode_15.2.app + - name: Install + run: brew install swift-format + - name: Format + run: make format + - uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: "[ci skip] Run swift-format" + branch: "main" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/ci_scripts/ci_post_clone.sh b/ci_scripts/ci_post_clone.sh new file mode 100644 index 0000000..cf8abab --- /dev/null +++ b/ci_scripts/ci_post_clone.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +defaults write com.apple.dt.Xcode IDESkipPackagePluginFingerprintValidatation -bool YES +defaults write com.apple.dt.Xcode IDESkipMacroFingerprintValidation -bool YES