-
Notifications
You must be signed in to change notification settings - Fork 175
63 lines (51 loc) · 1.73 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
59
60
61
62
63
# 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:
pull_request:
branches: ["dui3/alpha", "dui3/ci/github-actions-test"]
jobs:
build:
runs-on: windows-latest
strategy:
matrix:
paths: [
"DUI3-DX\\Connectors\\Revit\\Speckle.Connectors.Revit2023\\Speckle.Connectors.Revit2023.csproj",
"DUI3-DX\\Connectors\\Revit\\Speckle.Connectors.ArcGIS3\\Speckle.Connectors.Revit2023.csproj"
]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 7.x.x
- name: NuGet Cache
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
- name: Format
run: dotnet run --project Build/Build.csproj -- format
- name: Clean
env:
TARGET_PATH: ${{ matrix.paths }}
run: dotnet run --project Build/Build.csproj -- clean
- name: Restore
env:
TARGET_PATH: ${{ matrix.paths }}
run: dotnet run --project Build/Build.csproj -- restore
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Build
env:
TARGET_PATH: ${{ matrix.paths }}
run: dotnet run --project Build/Build.csproj -- build
- name: Pack
env:
TARGET_PATH: ${{ matrix.paths }}
run: dotnet run --project Build/Build.csproj -- zip
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
path: output/*.*