-
Notifications
You must be signed in to change notification settings - Fork 23
59 lines (46 loc) · 1.63 KB
/
BuildExtension.yml
File metadata and controls
59 lines (46 loc) · 1.63 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
54
55
56
57
58
59
name: Build VS Extension
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
env:
clangLayoutSolution: Parsers/ClangLayout/ClangLayout.sln
pdbLayoutSolution: Parsers/PDBLayout/PDBLayout.sln
extensionSolutionName: StructLayout/StructLayout.sln
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout LLVM library
uses: actions/checkout@v4
with:
repository: Viladoman/ClangArtifacts
sparse-checkout: llvm-project
path: External
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1
- uses: nuget/setup-nuget@v1
with:
nuget-version: '5.x'
- name: Build Clang Layout
run: msbuild /m /p:Configuration=Release /p:Platform=x64 ${{ env.clangLayoutSolution }}
- name: Build PDB Layout
run: msbuild /m /p:Configuration=Release /p:Platform=x64 ${{ env.pdbLayoutSolution }}
- name: NuGet restore Struct Layout
run: nuget restore ${{ env.extensionSolutionName }}
- name: Build Struct Layout VSIX
run: msbuild /m /p:Configuration=Release ${{ env.extensionSolutionName }}
- name: Upload VSIX 2019 Extension Artifacts
uses: actions/upload-artifact@v3
with:
name: StructLayout-VSIX2019
path: StructLayout/VSIX16/bin/Release/StructLayout.vsix
- name: Upload VSIX 2022 Extension Artifacts
uses: actions/upload-artifact@v3
with:
name: StructLayout-VSIX2022
path: StructLayout/VSIX17/bin/Release/StructLayout.vsix