From 44d2c67df01510af24d587593f4d66f9bedc680e Mon Sep 17 00:00:00 2001 From: Daiki Matsudate Date: Wed, 13 Mar 2024 02:04:34 +0900 Subject: [PATCH] Setup CI Signed-off-by: Daiki Matsudate --- .github/workflows/format.yml | 25 +++++++++++++++++++++++++ ci_scripts/ci_post_clone.sh | 4 ++++ 2 files changed, 29 insertions(+) create mode 100644 .github/workflows/format.yml create mode 100644 ci_scripts/ci_post_clone.sh 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