-
Notifications
You must be signed in to change notification settings - Fork 34
43 lines (35 loc) · 1.09 KB
/
main.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
name: Build conan-vs-extension
on:
push:
branches: [ develop2 ]
pull_request:
branches: [ develop2 ]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Cache NuGet packages
uses: actions/cache@v3
with:
path: ~\nuget\packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.config') }}
restore-keys: |
${{ runner.os }}-nuget-
- name: Setup NuGet
uses: nuget/setup-nuget@v1
- name: Setup msbuild
uses: microsoft/setup-msbuild@v2
- name: Restore NuGet
run: nuget restore
- name: Build conan-vs-extension
run: msbuild /p:configuration=Release /p:Platform="Any CPU" /p:DeployExtension=false /p:ZipPackageCompressionLevel=normal
- name: Upload VSIX as artifact
uses: actions/upload-artifact@v4
with:
name: conan-vs-extension.vsix
path: bin\Release\conan-vs-extension.vsix
if-no-files-found: error