Skip to content

ci(gitlab): use DEVELOPER_DIR instead of sudo xcode-select #25

ci(gitlab): use DEVELOPER_DIR instead of sudo xcode-select

ci(gitlab): use DEVELOPER_DIR instead of sudo xcode-select #25

Workflow file for this run

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