ci(gitlab): use DEVELOPER_DIR instead of sudo xcode-select #25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: macos-15 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Select Xcode | |
| run: sudo xcode-select -s /Applications/Xcode_16.4.app | |
| - name: Show Xcode version | |
| run: xcodebuild -version | |
| - name: Build | |
| run: | | |
| xcodebuild -project DevWatchdog.xcodeproj \ | |
| -scheme DevWatchdog \ | |
| -configuration Release \ | |
| -derivedDataPath build \ | |
| CODE_SIGN_IDENTITY="" \ | |
| CODE_SIGNING_REQUIRED=NO \ | |
| build | |
| - name: Test | |
| run: | | |
| xcodebuild -project DevWatchdog.xcodeproj \ | |
| -scheme DevWatchdog \ | |
| -configuration Debug \ | |
| -derivedDataPath build \ | |
| -destination 'platform=macOS' \ | |
| CODE_SIGN_IDENTITY="" \ | |
| CODE_SIGNING_REQUIRED=NO \ | |
| test | |
| - name: Upload artifact | |
| if: github.ref == 'refs/heads/main' | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: DevWatchdog.app | |
| path: build/Build/Products/Release/DevWatchdog.app |