diff --git a/.github/workflows/test_windows.yml b/.github/workflows/test_windows.yml index 90cea036..3e9b40b2 100644 --- a/.github/workflows/test_windows.yml +++ b/.github/workflows/test_windows.yml @@ -41,12 +41,8 @@ jobs: - name: "Enable Developer Command Prompt for Visual Studio" uses: ilammy/msvc-dev-cmd@v1 - - name: "Build AutonomyLib" - shell: cmd - run: scripts\cmd\build.cmd - - # - name: "Add MSBuild to PATH" - # uses: microsoft/setup-msbuild@v2 + - name: "Add MSBuild to PATH" + uses: microsoft/setup-msbuild@v2 # # - name: "Activate Developer PowerShell for Visual Studio 2019" # if: ${{ matrix.os == 'windows-2019' }} @@ -62,6 +58,10 @@ jobs: # 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\Launch-VsDevShell.ps1' # $CMAKE_GENERATOR_PLATFORM = 'Visual Studio 17 2022' # + - name: "Build AutonomyLib" + shell: cmd + run: scripts\cmd\build.cmd + # # - name: "Build AutonomySim" # shell: pwsh # run: | diff --git a/scripts/cmd/build.cmd b/scripts/cmd/build.cmd index e76910de..86a24738 100644 --- a/scripts/cmd/build.cmd +++ b/scripts/cmd/build.cmd @@ -16,7 +16,7 @@ set fullPolyCar= set buildMode= REM // Check Visual Studio version -if %VisualStudioVersion% == "" ( +if %VisualStudioVersion% EQU "" ( echo. echo "ERROR: command must be run from VS2022 Developer Command Prompt or Developer PowerShell." goto :buildfailed_nomsg