-
Notifications
You must be signed in to change notification settings - Fork 103
63 lines (53 loc) · 1.4 KB
/
main.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Main
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: '0 0 * * 6'
workflow_dispatch:
jobs:
main:
strategy:
fail-fast: false
matrix:
config:
- name: 'macos'
image: 'macos-12'
solution: 'XamlMath.Portable.sln'
- name: 'linux'
image: 'ubuntu-22.04'
solution: 'XamlMath.Portable.sln'
- name: 'windows'
image: 'windows-2022'
solution: 'XamlMath.All.sln'
name: main.${{ matrix.config.name }}
runs-on: ${{ matrix.config.image }}
env:
DOTNET_NOLOGO: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
NUGET_PACKAGES: ${{ github.workspace }}/.github/nuget-packages
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Verify encoding
shell: pwsh
run: ./scripts/verify-encoding.ps1
- name: NuGet cache
uses: actions/cache@v3
with:
path: ${{ env.NUGET_PACKAGES }}
key: ${{ runner.os }}.nuget.${{ hashFiles('**/*.csproj', '**/*.fsproj') }}
- name: Set up .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
6.0.x
7.0.x
- name: Build
run: dotnet build ${{ matrix.config.solution }}
- name: Test
run: dotnet test ${{ matrix.config.solution }}