-
Notifications
You must be signed in to change notification settings - Fork 91
38 lines (34 loc) · 1.09 KB
/
dotnetcore.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: .NET Core
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: Ubuntu-22.04
strategy:
matrix:
dotnet-version: [6, 7, 8]
steps:
- uses: actions/checkout@v2
- name: Setup dotnet ${{ matrix.dotnet-version }}.0.x
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ matrix.dotnet-version }}.0.x
- name: Install dependencies
run: dotnet restore
working-directory: ./src/Blazor-ApexCharts
- name: Build Main
run: dotnet build --configuration Release --no-restore --framework net${{ matrix.dotnet-version }}.0
working-directory: ./src/Blazor-ApexCharts
- name: Install .NET MAUI
if: ${{ matrix.dotnet-version == 8 }}
run:
dotnet workload install maui
dotnet restore
working-directory: ./src/Blazor-ApexCharts-MAUI
- name: Build MAUI
if: ${{ matrix.dotnet-version == 8 }}
run: dotnet build --configuration Release --no-restore --framework net${{ matrix.dotnet-version }}.0
working-directory: ./src/Blazor-ApexCharts-MAUI