name: Checks on: push: branches: [main] pull_request: branches: [main] permissions: contents: read concurrency: group: checks-${{ github.ref }} cancel-in-progress: true jobs: checks: runs-on: xcode-27 timeout-minutes: 30 steps: - uses: actions/checkout@v5 - name: Select Xcode 27.2 run: sudo xcode-select -s /Applications/Xcode_27.2.app - name: Package tests run: swift test - name: Generate the Xcode project run: brew list xcodegen >/dev/null 2>&1 || brew install xcodegen; xcodegen generate - name: Build for Mac run: | set -o pipefail xcodebuild -project Graphley.xcodeproj -scheme GraphleyMac -configuration Release \ -destination 'generic/platform=macOS' CODE_SIGNING_ALLOWED=NO build | grep -E "error:|BUILD" - name: Build for iPhone run: | set -o pipefail xcodebuild -project Graphley.xcodeproj -scheme GraphleyPhone -configuration Release \ -destination 'generic/platform=iOS' CODE_SIGNING_ALLOWED=NO build | grep -E "error:|BUILD"