-
Notifications
You must be signed in to change notification settings - Fork 19
102 lines (83 loc) · 3.33 KB
/
BuildApps.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
name: Build Apps
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: windows-latest
env:
extractorDir: ./DataExtractor
parserDir: ./Parser
appsDir: ./CompileScore
extractorSolution: ScoreDataExtractor.sln
parserSolution: CompileScoreParser.sln
appsSolution: CompileScore.sln
toolsBuildConfig: Release
NetPlatform: net7.0-windows
strategy:
matrix:
buildconfig: [Release]
steps:
- name: Checkout
uses: actions/checkout@v3
- 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: NuGet restore Score Data Extractor
working-directory: ${{env.extractorDir}}
run: nuget restore ${{ env.extractorSolution }}
- name: Build Score Data Extractor
working-directory: ${{env.extractorDir}}
run: msbuild /m /p:Configuration=${{ env.toolsBuildConfig }} /p:Platform=x64 ${{ env.extractorSolution }}
- name: Build Parser
working-directory: ${{env.parserDir}}
run: msbuild /m /p:Configuration=${{ env.toolsBuildConfig }} /p:Platform=x64 ${{ env.parserSolution }}
- name: NuGet restore Compile Score
working-directory: ${{env.appsDir}}
run: nuget restore ${{ env.appsSolutionName }}
- name: Build Compile Score VSIX
working-directory: ${{env.appsDir}}
run: msbuild /m /p:Configuration=${{matrix.buildconfig}} ${{ env.appsSolutionName }}
- name: Upload Extractor Artifact 1
if: ${{matrix.buildconfig == env.toolsBuildConfig}}
uses: actions/upload-artifact@v3
with:
name: CompileScore-Extractor-${{ env.toolsBuildConfig }}
path: ${{env.extractorDir}}/bin/x64/${{ env.toolsBuildConfig }}/*.exe
- name: Upload Extractor Artifact 2
if: ${{matrix.buildconfig == env.toolsBuildConfig}}
uses: actions/upload-artifact@v3
with:
name: CompileScore-Extractor-${{ env.toolsBuildConfig }}
path: ${{env.extractorDir}}/bin/x64/${{ env.toolsBuildConfig }}/*.dll
- name: Upload Parser Artifact
if: ${{matrix.buildconfig == env.toolsBuildConfig}}
uses: actions/upload-artifact@v3
with:
name: CompileScore-Parser-${{env.toolsBuildConfig}}
path: ${{env.parserDir}}/bin/x64/${{env.toolsBuildConfig}}/CompileScoreParser.exe
- name: Upload VSIX 2019 Extension Artifacts
uses: actions/upload-artifact@v3
with:
name: CompileScore-VSIX2019-${{matrix.buildconfig}}
path: ${{env.appsDir}}/VSIX16/bin/${{matrix.buildconfig}}/CompileScore.vsix
- name: Upload VSIX 2022 Extension Artifacts
uses: actions/upload-artifact@v3
with:
name: CompileScore-VSIX2022-${{matrix.buildconfig}}
path: ${{env.appsDir}}/VSIX17/bin/${{matrix.buildconfig}}/CompileScore.vsix
- name: Upload App Artifacts
uses: actions/upload-artifact@v3
with:
name: CompileScore-App-${{matrix.buildconfig}}
path: ${{env.appsDir}}/WPF/bin/${{matrix.buildconfig}}/${{ env.NetPlatform }}/*