File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -127,6 +127,15 @@ jobs:
127
127
runs-on : ${{ matrix.os }}
128
128
129
129
steps :
130
+ - name : Prepare Environment
131
+ shell : pwsh
132
+ run : |
133
+ $root = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
134
+ Import-Module "$root\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"
135
+ Enter-VsDevShell -VsInstallPath $root -DevCmdArguments "-arch=${{ matrix.arch }}"
136
+
137
+ ls env: | foreach { "$($_.Name)=$($_.Value)" >> $env:GITHUB_ENV }
138
+
130
139
- name : Install dependencies
131
140
if : ${{ matrix.packages != '' }}
132
141
run : vcpkg install --triplet ${{ matrix.triplet }} ${{ matrix.packages }}
@@ -138,7 +147,6 @@ jobs:
138
147
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
139
148
shell : cmd
140
149
run : |
141
- call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=${{ matrix.arch }}
142
150
cmake -B ${{github.workspace}}/build ^
143
151
-G "${{ matrix.generator }}" ^
144
152
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }} ^
@@ -153,7 +161,6 @@ jobs:
153
161
# Build your program with the given configuration
154
162
shell : cmd
155
163
run : |
156
- call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=${{ matrix.arch }}
157
164
cmake --build ${{github.workspace}}/build --config ${{ matrix.build-type }}
158
165
159
166
- name : Test
You can’t perform that action at this time.
0 commit comments