-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (44 loc) · 1.19 KB
/
ci.yml
File metadata and controls
53 lines (44 loc) · 1.19 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
name: CI
on:
push:
branches: [ master, main ]
tags: [ 'v*' ]
pull_request:
branches: [ master, main ]
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
env:
# This ensures the build script can find CMake if not in default path (though it usually is on runners)
CMAKE_GENERATOR: "Visual Studio 17 2022"
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # Required for Nerdbank.GitVersioning to determine version
submodules: recursive
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Display Tools Versions
run: |
dotnet --version
cmake --version
- name: Build, Test, and Pack
shell: pwsh
run: .\build\pack.ps1
- name: Upload NuGet Packages
uses: actions/upload-artifact@v4
if: always()
with:
name: nuget-packages
path: artifacts/nuget/*.nupkg
if-no-files-found: warn
- name: Upload Symbol Packages
uses: actions/upload-artifact@v4
if: always()
with:
name: symbol-packages
path: artifacts/nuget/*.snupkg
if-no-files-found: warn