-
Notifications
You must be signed in to change notification settings - Fork 17
83 lines (79 loc) · 2.77 KB
/
dotnet-build-componentclassregistry.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: .NET build ComponentClassRegistry
on:
push:
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
working-directory: dotnet/ComponentClassRegistry
run: dotnet restore
- name: Build
working-directory: dotnet/ComponentClassRegistry
run: dotnet build
- name: Test
working-directory: dotnet/ComponentClassRegistry
run: dotnet test
- name: Pack
working-directory: dotnet/ComponentClassRegistry
run: dotnet pack
- name: Install Package Tools
working-directory: dotnet/ComponentClassRegistry
run: |
dotnet tool install --global dotnet-deb
dotnet tool install --global dotnet-rpm
dotnet tool install --global dotnet-zip
- name: SMBIOS Cli
working-directory: dotnet/ComponentClassRegistry/SmbiosCli
run: |
dotnet deb install
dotnet rpm install
dotnet zip install
dotnet deb -r linux-x64 -c Release
dotnet rpm -r linux-x64 -c Release
dotnet zip -r linux-x64 -c Release
dotnet zip -r win-x64 -c Release
- name: PCIe Cli
working-directory: dotnet/ComponentClassRegistry/PcieCli
run: |
dotnet deb install
dotnet rpm install
dotnet zip install
dotnet deb -r linux-x64 -c Release
dotnet rpm -r linux-x64 -c Release
dotnet zip -r linux-x64 -c Release
dotnet zip -r win-x64 -c Release
- name: Storage Cli
working-directory: dotnet/ComponentClassRegistry/StorageCli
run: |
dotnet deb install
dotnet rpm install
dotnet zip install
dotnet deb -r linux-x64 -c Release
dotnet rpm -r linux-x64 -c Release
dotnet zip -r linux-x64 -c Release
dotnet zip -r win-x64 -c Release
- name: Artifacts
uses: actions/upload-artifact@v4
with:
name: testArtifacts.${{ matrix.os }}
retention-days: 1
if-no-files-found: error
path: |
dotnet/ComponentClassRegistry/SmbiosCli/**/*.deb
dotnet/ComponentClassRegistry/SmbiosCli/**/*.rpm
dotnet/ComponentClassRegistry/SmbiosCli/**/*.zip
dotnet/ComponentClassRegistry/PcieCli/**/*.deb
dotnet/ComponentClassRegistry/PcieCli/**/*.rpm
dotnet/ComponentClassRegistry/PcieCli/**/*.zip
dotnet/ComponentClassRegistry/StorageCli/**/*.deb
dotnet/ComponentClassRegistry/StorageCli/**/*.rpm
dotnet/ComponentClassRegistry/StorageCli/**/*.zip