-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (38 loc) · 1.25 KB
/
ci.yml
File metadata and controls
49 lines (38 loc) · 1.25 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
name: CI/CD
on:
push:
branches: ["**"]
pull_request:
branches: ["**"]
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET 8.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: "8.0.x"
- name: Restore dependencies
run: dotnet restore
- name: Build solution
run: dotnet build PurelySharp.sln --configuration Release --no-restore
- name: Test
run: dotnet test PurelySharp.Test/PurelySharp.Test.csproj --configuration Release --verbosity normal
- name: Build VSIX project
run: |
dotnet build PurelySharp.Vsix/PurelySharp.Vsix.csproj --configuration Release /p:EnableVsixPackaging=true
- name: Upload VSIX artifact
uses: actions/upload-artifact@v4
with:
name: vsix-package
path: PurelySharp.Vsix/bin/Release/*.vsix
if-no-files-found: warn
- name: Package NuGet
run: dotnet pack PurelySharp.Package/PurelySharp.Package.csproj --configuration Release --output nupkgs
- name: Upload NuGet artifact
uses: actions/upload-artifact@v4
with:
name: nuget-packages
path: nupkgs/*.nupkg