-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (33 loc) · 1.02 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
name: .NET
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: windows-2022
env:
BuildProjects: "['OmsiExtensionsCLI/OmsiExtensionsCLI.csproj', 'OmsiExtensionsUI/OmsiExtensionsUI.csproj','OmsiHookRPCPlugin/OmsiHookRPCPlugin.csproj']"
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.0.x
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Setup Windows 10 SDK
uses: GuillaumeFalourd/[email protected]
- name: Restore dependencies
shell: pwsh
run: |
foreach($proj in (ConvertFrom-JSON "${{env.BuildProjects}}")) {
dotnet restore ${{ github.workspace }}/$proj
}
- name: Build
shell: pwsh
run: |
foreach($proj in (ConvertFrom-JSON "${{env.BuildProjects}}")) {
msbuild ${{ github.workspace }}/$proj -t:rebuild -property:Configuration=Release
}