-
Notifications
You must be signed in to change notification settings - Fork 16
58 lines (48 loc) · 1.35 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# 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: .NET
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: change working directory
run: cd src
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
2.0.x
2.1.x
3.1.x
5.0.x
6.0.x
7.0.x
- name: Build
run: dotnet build -c Release
working-directory: src
- name: Check
run: dotnet run --project src/AssmeblyCheck/AssmeblyCheck.csproj
- name: Test
run: dotnet test --no-build --verbosity normal
working-directory: src
- name: Upload .NET Standard2.0
uses: actions/upload-artifact@v3
with:
name: .NET Standard 2.0
path: src/EleCho.GoCqHttpSdk*/bin/Release/netstandard2.0/*.dll
- name: Upload .NET 6
uses: actions/upload-artifact@v3
with:
name: .NET 6
path: src/EleCho.GoCqHttpSdk*/bin/Release/net6.0/*.dll
- name: Upload .NET 7
uses: actions/upload-artifact@v3
with:
name: .NET 7
path: src/EleCho.GoCqHttpSdk*/bin/Release/net7.0/*.dll