12
12
platform : [x86, x64]
13
13
runs-on : windows-latest
14
14
env :
15
- PLATFORM : ${{ matrix.platform }}
16
- BUILD_CONFIGURATION : Release
17
- SOLUTION_FILE_PATH : .
15
+ Platform : ${{ matrix.platform }}
16
+ Configuration : Release
17
+ VcpkgManifestInstall : false
18
18
VCPKG_BINARY_SOURCES : ' clear;x-gha,readwrite'
19
19
20
20
steps :
46
46
key : vcpkgCache-${{ runner.os }}-${{ matrix.platform }}-${{ hashFiles('vcpkg.json') }}
47
47
48
48
- name : Pre-install vcpkg dependencies - OPHD
49
+ env :
50
+ VcpkgManifestInstall : true
49
51
run : |
50
- msbuild . /property:Configuration=${{env.BUILD_CONFIGURATION}} / target:appOPHD:VcpkgInstallManifestDependencies
52
+ msbuild . /target:appOPHD:VcpkgInstallManifestDependencies
51
53
52
54
- name : Save vcpkg dependency cache
53
55
uses : actions/cache/save@v4
62
64
63
65
- name : Pre-install vcpkg dependencies - NAS2D
64
66
working-directory : nas2d-core
67
+ env :
68
+ VcpkgManifestInstall : true
65
69
run : |
66
- msbuild . /property:Configuration=${{env.BUILD_CONFIGURATION}} / target:NAS2D:VcpkgInstallManifestDependencies
70
+ msbuild . /target:NAS2D:VcpkgInstallManifestDependencies
67
71
68
72
- name : Set NAS2D modification time
69
73
shell : bash
88
92
# Add additional options to the MSBuild command line here (like platform or verbosity level).
89
93
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
90
94
run : |
91
- msbuild /maxCpuCount /warnAsError /property:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}} /target:NAS2D
95
+ msbuild . /maxCpuCount /warnAsError /property:RunCodeAnalysis=true /target:NAS2D
92
96
93
97
- name : Save build cache - NAS2D
94
98
uses : actions/cache/save@v4
@@ -139,7 +143,7 @@ jobs:
139
143
# Add additional options to the MSBuild command line here (like platform or verbosity level).
140
144
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
141
145
run : |
142
- msbuild /maxCpuCount /warnAsError /property:RunCodeAnalysis=true /property:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
146
+ msbuild . /maxCpuCount /warnAsError /property:RunCodeAnalysis=true
143
147
144
148
- name : Save incremental build cache - OPHD
145
149
uses : actions/cache/save@v4
@@ -149,7 +153,7 @@ jobs:
149
153
key : buildCache-${{ runner.os }}-${{ matrix.platform }}-${{ github.sha }}
150
154
151
155
- name : Run libOPHD unit tests
152
- run : .build/${{env.BUILD_CONFIGURATION }}_${{env.PLATFORM }}_testLibOPHD/testLibOPHD.exe
156
+ run : .build/${{env.Configuration }}_${{env.Platform }}_testLibOPHD/testLibOPHD.exe
153
157
154
158
- name : Run libControl unit tests
155
- run : .build/${{env.BUILD_CONFIGURATION }}_${{env.PLATFORM }}_testLibControls/testLibControls.exe
159
+ run : .build/${{env.Configuration }}_${{env.Platform }}_testLibControls/testLibControls.exe
0 commit comments