-
Notifications
You must be signed in to change notification settings - Fork 11
48 lines (44 loc) · 1.24 KB
/
dotnet-development-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
47
48
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: DevBuild
concurrency:
group: "${{ github.workflow }}/${{ github.ref }}"
cancel-in-progress: false
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
jobs:
test:
# config strategy
strategy:
max-parallel: 3
fail-fast: false
matrix:
version: [ 8.0 ]
# temp: disable macos test
# os: [ ubuntu-latest, windows-latest ]
# temp: disable macos and linux test
# os: [ windows-latest ]
# note: test all os
os: [ ubuntu-latest, windows-latest, macos-latest ]
# config os
runs-on: ${{ matrix.os }}
# config steps
steps:
# config environment
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
# config dotnet version
with:
dotnet-version: ${{ matrix.version }}
# restore dependencies
- name: Restore Netly Project
run: dotnet restore ./src/Netly.csproj
# run netly test
- name: Build Netly Library
run: dotnet build ./src/Netly.csproj -c Debug --no-restore