Use vswhere.exe in Windows pipeline
This commit is contained in:
parent
5b69a5555f
commit
6cf950978f
7
.github/workflows/ci-workflow.yml
vendored
7
.github/workflows/ci-workflow.yml
vendored
@ -46,7 +46,7 @@ jobs:
|
|||||||
name: premake-macosx-${{ matrix.platform }}
|
name: premake-macosx-${{ matrix.platform }}
|
||||||
path: bin/${{ matrix.config }}/
|
path: bin/${{ matrix.config }}/
|
||||||
windows:
|
windows:
|
||||||
runs-on: windows-2019
|
runs-on: windows-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
config: [debug, release]
|
config: [debug, release]
|
||||||
@ -56,9 +56,8 @@ jobs:
|
|||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
|
$vcvarsall_path = vswhere.exe -find VC\Auxiliary\Build\vcvarsall.bat
|
||||||
nmake -f Bootstrap.mak MSDEV=vs2019 windows-msbuild PLATFORM=${{ matrix.platform }} CONFIG=${{ matrix.config }}
|
cmd.exe /c "call ""$vcvarsall_path"" x86_amd64 && nmake -f Bootstrap.mak MSDEV=vs2019 windows-msbuild PLATFORM=${{ matrix.platform }} CONFIG=${{ matrix.config }}"
|
||||||
shell: cmd
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: bin\${{ matrix.config }}\premake5 test --test-all
|
run: bin\${{ matrix.config }}\premake5 test --test-all
|
||||||
shell: cmd
|
shell: cmd
|
||||||
|
Reference in New Issue
Block a user