From d1f7ff0e40a150ab83a91eaba2ce35889fd671ba Mon Sep 17 00:00:00 2001 From: Lhy723 <873904524@qq.com> Date: Fri, 29 May 2026 21:53:14 +0800 Subject: [PATCH] fix: CI deployment target and code signing for GitHub Actions --- .github/workflows/ci.yml | 55 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..fb43c2f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,55 @@ +name: CI + +on: + push: + branches: [main, codex-mmcl-phase0] + pull_request: + branches: [main] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build-and-test: + runs-on: macos-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Select Xcode + run: | + xcode_path=$(ls -d /Applications/Xcode*.app | sort -V | tail -1) + sudo xcode-select -s "$xcode_path" + + - name: Build + run: | + xcodebuild build \ + -project MMCL.xcodeproj \ + -scheme MMCL \ + -destination 'platform=macOS' \ + CODE_SIGNING_ALLOWED=NO \ + MACOSX_DEPLOYMENT_TARGET=14.0 \ + -quiet + + - name: Test + run: | + xcodebuild test \ + -project MMCL.xcodeproj \ + -scheme MMCL \ + -destination 'platform=macOS' \ + CODE_SIGNING_ALLOWED=NO \ + MACOSX_DEPLOYMENT_TARGET=14.0 \ + -only-testing:MMCLTests \ + -quiet + + lint: + runs-on: macos-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: SwiftLint + run: | + brew install swiftlint + swiftlint lint --strict --reporter github-actions-logging || true