-
Notifications
You must be signed in to change notification settings - Fork 2.4k
87 lines (75 loc) · 2.39 KB
/
mac.yml
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: OSX Build
on: [push, workflow_dispatch, pull_request]
jobs:
buildIOS:
name: Build IOS
runs-on: macos-13
steps:
- uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 10
- name: Cache multiple paths
uses: actions/cache@v2
with:
path: |
**/obj/**
key: ${{ runner.os }}-buildIOS
- name: Build
shell: pwsh
run: |
brew install --cask xamarin-ios
brew install --cask xamarin-android
brew install --cask xamarin-mac
msbuild -ver
dotnet --version
dotnet --list-sdks
msbuild -v:m -restore -p:Configuration=Release "ExtLibs\Xamarin\Xamarin.iOS\Xamarin.iOS.csproj"
- uses: actions/upload-artifact@v4
with:
name: ios
path: ExtLibs/Xamarin/Xamarin.iOS/bin/iPhoneSimulator/Release/
buildOSX:
name: Build OSX
runs-on: macos-13
steps:
- uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 10
- name: Cache multiple paths
uses: actions/cache@v2
with:
path: |
**/obj/**
key: ${{ runner.os }}-buildOSX
- name: Build
shell: pwsh
run: |
brew install --cask xamarin-ios
brew install --cask xamarin-android
brew install --cask xamarin-mac
msbuild -ver
dotnet --version
dotnet --list-sdks
msbuild -v:m -restore -p:Configuration=Release "ExtLibs\Xamarin\Xamarin.MacOS\Xamarin.MacOS.csproj"
- name: Package
shell: pwsh
continue-on-error: true
run: |
npm install --global create-dmg
cd ExtLibs/Xamarin/Xamarin.MacOS/bin/Release/
create-dmg 'Mission Planner.app' --dmg-title='Mission Planner'
- uses: actions/upload-artifact@v4
with:
name: osx
path: |
ExtLibs/Xamarin/Xamarin.MacOS/bin/Release/*.dmg
- uses: "marvinpinto/[email protected]"
if: ${{ github.event_name == 'push' }}
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "osxlatest"
prerelease: true
title: "OSX Development Build"
files: '**/*.dmg'