mirror of
https://github.com/Toxblh/MTMR.git
synced 2026-07-01 18:45:51 +00:00
- Set ARCHS = "arm64 x86_64" explicitly in project-level Debug and Release configs - Raise MACOSX_DEPLOYMENT_TARGET from 10.12.2 to 11.0 (minimum macOS for Apple Silicon) - Pass ARCHS="arm64 x86_64" in build.sh and CI workflows to guarantee universal output - Update CI action versions (checkout@v3, setup-node@v3, Node 18.x) - Add lipo verification step in build-test CI to confirm universal binary Sparkle.framework was already a universal binary (x86_64 + arm64). Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
26 lines
739 B
YAML
26 lines
739 B
YAML
name: Build-and-test
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: macOS-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Run tests
|
|
run: xcodebuild test -project MTMR.xcodeproj -scheme 'UnitTests' | xcpretty -c && exit ${PIPESTATUS[0]}
|
|
|
|
build:
|
|
runs-on: macOS-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Build (universal binary)
|
|
run: xcodebuild archive -project "MTMR.xcodeproj" -scheme "MTMR" -archivePath Release/App.xcarchive DEVELOPMENT_TEAM="" CODE_SIGN_IDENTITY="" ARCHS="arm64 x86_64" | xcpretty -c && exit ${PIPESTATUS[0]}
|
|
|
|
- name: Verify universal binary
|
|
run: lipo -info Release/App.xcarchive/Products/Applications/MTMR.app/Contents/MacOS/MTMR
|