-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (30 loc) · 1.25 KB
/
Copy pathxcode.yml
File metadata and controls
35 lines (30 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# This workflow will build a Xcode project
name: Xcode Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: [self-hosted, macOS, ARM64]
steps:
- uses: actions/checkout@v3
- name: Build x86_64
run: xcodebuild -arch x86_64
- name: Create x86_64 dmg
run: create-dmg --volname "macOSHelper" --window-size 400 661 --volicon "dmgicon.icns" --background "bg@4x.jpg" --icon-size 60 --icon "macOSHelper.app" 50 230 --hide-extension "macOSHelper.app" --app-drop-link 225 230 "macOSHelper_x86_64.dmg" "build/Release/macOSHelper.app"
- name: Upload -x86_64
uses: actions/upload-artifact@v3
with:
name: macOSHelper-x86_64
path: macOSHelper_x86_64.dmg
- name: Build arm64
run: xcodebuild -arch arm64
- name: Create x86_64 dmg
run: create-dmg --volname "macOSHelper" --window-size 400 661 --volicon "dmgicon.icns" --background "bg@4x.jpg" --icon-size 60 --icon "macOSHelper.app" 50 230 --hide-extension "macOSHelper.app" --app-drop-link 225 230 "macOSHelper_arm64.dmg" "build/Release/macOSHelper.app"
- name: Upload -arm64
uses: actions/upload-artifact@v3
with:
name: macOSHelper-arm64
path: macOSHelper_arm64.dmg