Skip to content

Commit

Permalink
use separate command for vcpkg install on Windows due to PowerShell p…
Browse files Browse the repository at this point in the history
…arsing error
  • Loading branch information
nam20485 committed Oct 18, 2023
1 parent 0e0ce8d commit f1e5c6d
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,17 +85,21 @@ jobs:
./scripts/generate-python-module.sh
if: matrix.preset == 'python-linux-release'

#
# All platforms
#
- name: Manual vcpkg Install (not mingw-w64)
- name: Manual vcpkg Install (Non-Windows)
run: "\"${{env.VCPKG_ROOT}}/vcpkg\" install"
if: matrix.preset != 'linux-mingw-w64-release'
if: matrix.preset != 'linux-mingw-w64-release' && matrix.preset != 'windows-2022'

- name: Manual vcpkg Install (Windows)
run: "& \"${{env.VCPKG_ROOT}}/vcpkg\" install"
if: matrix.preset == 'windows-2022'

- name: Manual vcpkg Install (mingw-w64)
run: "\"${{env.VCPKG_ROOT}}/vcpkg\" install --triplet x64-mingw-static"
if: matrix.preset == 'linux-mingw-w64-release'


#
# All platforms
#
- name: CMake Configure
run: cmake --preset ${{matrix.preset}}

Expand Down

0 comments on commit f1e5c6d

Please sign in to comment.