forked from ikkentim/SampSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (47 loc) · 1.36 KB
/
Copy pathdotnet-libraries.yml
File metadata and controls
56 lines (47 loc) · 1.36 KB
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
name: CI - .NET Libraries
on:
pull_request:
branches:
- main
- release/1.*
paths:
- .github/workflows/dotnet-libraries.yml
- src/SampSharp.*/**
- test/**
- SampSharp.slnx
- Directory.Build.props
- build.cmd
- build.sh
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
checks: write
pull-requests: write
steps:
- uses: actions/checkout@v6
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'
- name: Build .NET libraries
run: ./build.sh libraries
- name: Test .NET libraries
run: ./build.sh libraries test --no-build
- name: Publish .NET libraries test results
if: ${{ !cancelled() }}
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: build/test-results/libraries/*.trx
check_name: .NET libraries test results
comment_mode: ${{ github.event_name == 'pull_request' && 'changes' || 'off' }}
- name: Pack .NET libraries
run: ./build.sh libraries publish
- name: Upload NuGet packages
uses: actions/upload-artifact@v7
with:
name: sampsharp-dotnet-nuget-packages
path: build/artifacts/packages/
if-no-files-found: error
retention-days: ${{ github.event_name == 'pull_request' && 14 || 90 }}