1
0
mirror of https://github.com/Toxblh/MTMR.git synced 2026-07-01 18:45:51 +00:00
MTMR/.github/workflows/publish.yml
Caggegi 94fc98ccef
Add arm64 (Apple Silicon) support with universal binary (#476)
- 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>
2026-05-15 01:27:37 +03:00

42 lines
1.1 KiB
YAML

name: Publish unsign version
on:
push:
branches:
- master
tags:
- "v*"
jobs:
Build-and-release:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: Install create-dmg
run: npm i -g create-dmg
- name: Build Archive (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: Build App
run: xcodebuild -project "MTMR.xcodeproj" -exportArchive -archivePath Release/App.xcarchive -exportOptionsPlist export-options.plist -exportPath Release | xcpretty -c && exit ${PIPESTATUS[0]}
- name: Create DMG
run: |
cd Release
create-dmg MTMR.app || true
- name: GitHub Release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
files: Release/MTMR*.dmg