-
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (43 loc) · 1.38 KB
/
ci.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
name: CI
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
name: Build
runs-on: windows-latest
strategy:
matrix:
project:
- Riverside.Markup
- Riverside.Markup.CompilerServices
- Riverside.Markup.InteropServices
# Add more projects here as needed
#os: [windows-latest, ubuntu-latest]
outputs:
normalized_name: ${{ steps.normalize_name.outputs.normalized_name }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.x'
- name: Restore dependencies
run: dotnet restore src/${{ matrix.project }}/${{ matrix.project }}.csproj
- name: Build project
run: dotnet build src/${{ matrix.project }}/${{ matrix.project }}.csproj --configuration Release --no-restore
- name: Pack project
run: dotnet pack src/${{ matrix.project }}/${{ matrix.project }}.csproj --configuration Release --no-build -o ./output
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: Packages (${{ matrix.project }})
path: ./output/*.nupkg
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: Symbols (${{ matrix.project }})
path: ./output/*.snupkg