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