Jobley / app · jobley.ai / .github / workflows / checks.yml
| 1 | name: Checks |
| 2 | on: |
| 3 | push: |
| 4 | branches: [main] |
| 5 | pull_request: |
| 6 | branches: [main] |
| 7 | permissions: |
| 8 | contents: read |
| 9 | concurrency: |
| 10 | group: checks-${{ github.ref }} |
| 11 | cancel-in-progress: true |
| 12 | jobs: |
| 13 | checks: |
| 14 | runs-on: xcode-27 |
| 15 | timeout-minutes: 30 |
| 16 | steps: |
| 17 | - uses: actions/checkout@v5 |
| 18 | - name: Select Xcode 27.2 |
| 19 | run: sudo xcode-select -s /Applications/Xcode_27.2.app |
| 20 | - name: Package tests |
| 21 | run: swift test |
| 22 | - name: Generate the Xcode project |
| 23 | run: brew list xcodegen >/dev/null 2>&1 || brew install xcodegen; xcodegen generate |
| 24 | - name: Build for Mac |
| 25 | run: | |
| 26 | set -o pipefail |
| 27 | xcodebuild -project Jobley.xcodeproj -scheme JobleyMac -configuration Release \ |
| 28 | -destination 'generic/platform=macOS' CODE_SIGNING_ALLOWED=NO build | grep -E "error:|BUILD" |
| 29 | - name: Build for iPhone |
| 30 | run: | |
| 31 | set -o pipefail |
| 32 | xcodebuild -project Jobley.xcodeproj -scheme JobleyPhone -configuration Release \ |
| 33 | -destination 'generic/platform=iOS' CODE_SIGNING_ALLOWED=NO build | grep -E "error:|BUILD" |