-
-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (34 loc) · 824 Bytes
/
sample.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
name: Sample
on:
workflow_dispatch:
push:
branches:
- '*'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [
windows-latest,
macos-latest
]
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6.0.x
7.0.x
8.0.x
- name: Install .NET MAUI workload
run: |
dotnet workload install maui --source https://api.nuget.org/v3/index.json
dotnet workload restore --project SampleApp.csproj
working-directory: sample/SampleApp/
- name: Restore
run: dotnet restore sample/SampleApp/SampleApp.csproj
- name: Build
run: dotnet build sample/SampleApp/SampleApp.csproj