-
-
Notifications
You must be signed in to change notification settings - Fork 37
46 lines (37 loc) · 1003 Bytes
/
build.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
name: Build for multiple SDK versions
on:
push:
branches:
- main
pull_request:
jobs:
build:
strategy:
matrix:
# Builds for Ubuntu, Windows, and macOS
os: [ubuntu-latest, windows-latest, macOS-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
# setup .NET SDK
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
global-json-file: 'global.json'
dotnet-version: |
8.x
9.x
# let's make sure we're on the version we think we are.
- name: Announce .NET version
continue-on-error: true
run: dotnet --info
- name: Restore tools
run: dotnet tool restore
- name: Run build and test
run: dotnet run --project build
- name: Archive test results
uses: actions/upload-artifact@v3
with:
name: test-results
path: test/**/TestResults/*.trx