Skip to content

Commit

Permalink
run vcpkg install manually before cmake configure
Browse files Browse the repository at this point in the history
  • Loading branch information
nam20485 committed Oct 18, 2023
1 parent a0e3b3f commit ae45094
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ on:

env:
VCPKG_ROOT: ${{ github.workspace }}/vcpkg
#CL_PATH: "\"C:\\Program Files\\Microsoft Visual Studio\\2022\\Enterprise\\VC\\Tools\\MSVC\\14.37.32822\\bin\\Hostx64\\x64\""


jobs:
build:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -61,7 +60,7 @@ jobs:
- name: Install mingw-w64
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends mingw-w64
sudo apt-get install -y --no-install-recommends mingw-w64
if: matrix.preset == 'linux-mingw-w64-release'

#
Expand All @@ -88,6 +87,14 @@ jobs:
#
# All platforms
#
- name: Manual vcpkg Install (not mingw-w64)
run: "${{env.VCPKG_ROOT}}/vcpkg install"
if: matrix.preset != 'python-linux-release'

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

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

Expand Down

0 comments on commit ae45094

Please sign in to comment.