-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (39 loc) · 1.27 KB
/
main.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
name: Build Xamarin.Forms app
on:
push:
# branches: [ main ]
pull_request:
# branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Install Xamarin via Custom Script
run: |
sh install_xam.sh
# - name: Install Xamarin via HomeBrew
# run: |
# brew install --cask xamarin-ios
# brew install --cask xamarin-android
# - name: Install Xamarin via boots
# run: |
# dotnet tool install -g boots
# boots --stable Xamarin.Android
# boots --stable Xamarin.iOS
- name: Set default Xcode 15.2
run: |
XCODE_ROOT=/Applications/Xcode_15.2.app
echo "MD_APPLE_SDK_ROOT=$XCODE_ROOT" >> $GITHUB_ENV
sudo xcode-select -s $XCODE_ROOT
- name: Setup .NET Core SDK 5.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: '5.0.x'
- name: Install dependencies
run: nuget restore BuildVMApp.sln
- name: Build iOS
run: msbuild BuildVMApp/BuildVMApp.iOS/BuildVMApp.iOS.csproj /p:Configuration=Debug /p:Platform=iPhoneSimulator
- name: Build Android
run: msbuild BuildVMApp/BuildVMApp.Android/BuildVMApp.Android.csproj /t:PackageForAndroid /p:Configuration=Debug