Files
meetingnotes/.github/workflows/build.yml
T
2026-07-14 22:48:41 +02:00

56 lines
1.9 KiB
YAML

name: Build
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:
jobs:
macos:
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- name: Build Meetingnotes
run: >-
xcodebuild
-project Meetingnotes.xcodeproj
-scheme meetingnotes
-configuration Release
-destination 'generic/platform=macOS'
-derivedDataPath "$RUNNER_TEMP/DerivedData"
ARCHS="arm64 x86_64"
ONLY_ACTIVE_ARCH=NO
CODE_SIGNING_ALLOWED=NO
build
- name: Smoke test local API
run: |
defaults write owen.meetingnotes muteDeckAPIEnabled -bool true
defaults write owen.meetingnotes muteDeckAPIPort -int 19880
"$RUNNER_TEMP/DerivedData/Build/Products/Release/Meetingnotes.app/Contents/MacOS/Meetingnotes" >"$RUNNER_TEMP/meetingnotes.log" 2>&1 &
app_pid=$!
trap 'kill "$app_pid" 2>/dev/null || true' EXIT
for _ in {1..20}; do
if curl -fsS http://127.0.0.1:19880/api/info >"$RUNNER_TEMP/api-info.json"; then
break
fi
sleep 1
done
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"
- 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