-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (40 loc) · 1.15 KB
/
Copy pathci.yml
File metadata and controls
45 lines (40 loc) · 1.15 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
36
37
38
39
40
41
42
43
44
45
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: macos-latest
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Select Xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 16.4
#xcode-version: latest-stable
- name: Get Xcode Version
id: xcode
uses: ./.github/actions/xcode-version
with:
min_version: '16.4'
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
9.0.x
8.0.x
7.0.x
6.0.x
# Using "dotnet workload restore" does not work running on 9.0.300 workloads
# So we install them manually and hard coded
- name: Install MAUI workloads
run: dotnet workload install maui-ios maui-android
- name: Build
env:
dotnet-target: "${{ steps.xcode.outputs.xcode_min_version != 'true' && '-p:DotNetTarget=8.0' || '' }}"
run: dotnet build --configuration Release ${{ env.dotnet-target }} ./MAUI.Native.Embedded.Sample/