-
Notifications
You must be signed in to change notification settings - Fork 66
40 lines (37 loc) · 1.04 KB
/
dotnet.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
name: ci/github-actions
on:
push:
branches: [ "**" ]
pull_request:
branches: [ "**" ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
winBuild:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Restore workloads
run: dotnet workload restore MauiSample/MauiSample.sln
- name: Restore dependencies
run: dotnet restore MauiSample/MauiSample.sln
- name: Build Maui Lib
run: dotnet build Maui.Tabs/Maui.Tabs.csproj --no-restore -c Release
- name: Upload package
uses: actions/upload-artifact@v4
with:
name: nupkg
path: ./Maui.Tabs/bin/Release/*.nupkg
- name: Build Test
run: dotnet build MauiSample/MauiSample.csproj --no-restore -c Debug