forked from 1357310795/JboxWebdav
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 1.07 KB
/
MAUI-macOS.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
name: Build .NET MAUI App For MacCatalyst
on:
workflow_dispatch:
env:
DOTNETVERSION: 6.0.x
BUILDTYPE: Release
jobs:
build-mac:
runs-on: macos-12
name: MacCatalyst Build
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET ${{env.DOTNETVERSION}}
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{env.DOTNETVERSION}}
- name: Install MAUI Workloads
run: |
dotnet workload install maccatalyst --ignore-failed-sources
dotnet workload install maui --ignore-failed-sources
- name: Restore Dependencies
run: dotnet restore JboxWebdav.MauiApp/JboxWebdav.MauiApp.csproj
- name: Build MAUI MacCatalyst
run: dotnet build JboxWebdav.MauiApp/JboxWebdav.MauiApp.csproj -c ${{env.BUILDTYPE}} -f net6.0-maccatalyst /p:CreatePackage=true
- name: Upload MacCatalyst Artifact
uses: actions/[email protected]
with:
name: macos-ci-build
path: JboxWebdav.MauiApp/bin/${{env.BUILDTYPE}}/net6.0-maccatalyst/**/*.app