ci: publish macOS test builds

This commit is contained in:
2026-07-14 22:48:41 +02:00
parent 20593bbc6e
commit 8039646508
+19 -3
View File
@@ -3,6 +3,8 @@ name: Build
on: on:
pull_request: pull_request:
branches: [main] branches: [main]
push:
branches: [main]
workflow_dispatch: workflow_dispatch:
jobs: jobs:
@@ -15,16 +17,18 @@ jobs:
xcodebuild xcodebuild
-project Meetingnotes.xcodeproj -project Meetingnotes.xcodeproj
-scheme meetingnotes -scheme meetingnotes
-configuration Debug -configuration Release
-destination 'platform=macOS' -destination 'generic/platform=macOS'
-derivedDataPath "$RUNNER_TEMP/DerivedData" -derivedDataPath "$RUNNER_TEMP/DerivedData"
ARCHS="arm64 x86_64"
ONLY_ACTIVE_ARCH=NO
CODE_SIGNING_ALLOWED=NO CODE_SIGNING_ALLOWED=NO
build build
- name: Smoke test local API - name: Smoke test local API
run: | run: |
defaults write owen.meetingnotes muteDeckAPIEnabled -bool true defaults write owen.meetingnotes muteDeckAPIEnabled -bool true
defaults write owen.meetingnotes muteDeckAPIPort -int 19880 defaults write owen.meetingnotes muteDeckAPIPort -int 19880
"$RUNNER_TEMP/DerivedData/Build/Products/Debug/Meetingnotes.app/Contents/MacOS/Meetingnotes" >"$RUNNER_TEMP/meetingnotes.log" 2>&1 & "$RUNNER_TEMP/DerivedData/Build/Products/Release/Meetingnotes.app/Contents/MacOS/Meetingnotes" >"$RUNNER_TEMP/meetingnotes.log" 2>&1 &
app_pid=$! app_pid=$!
trap 'kill "$app_pid" 2>/dev/null || true' EXIT trap 'kill "$app_pid" 2>/dev/null || true' EXIT
@@ -37,3 +41,15 @@ jobs:
grep -q '"name":"MeetingDebrief"' "$RUNNER_TEMP/api-info.json" grep -q '"name":"MeetingDebrief"' "$RUNNER_TEMP/api-info.json"
test "$(curl -sS -o /dev/null -w '%{http_code}' http://127.0.0.1:19880/api/recording/status)" = "401" test "$(curl -sS -o /dev/null -w '%{http_code}' http://127.0.0.1:19880/api/recording/status)" = "401"
- name: Package test build
run: |
app_path="$RUNNER_TEMP/DerivedData/Build/Products/Release/Meetingnotes.app"
codesign --force --deep --sign - "$app_path"
ditto -c -k --sequesterRsrc --keepParent \
"$app_path" "$RUNNER_TEMP/Meetingnotes-macOS.zip"
- name: Upload test build
uses: actions/upload-artifact@v4
with:
name: Meetingnotes-macOS-${{ github.sha }}
path: ${{ runner.temp }}/Meetingnotes-macOS.zip
retention-days: 30