Skip to content

Commit

Permalink
install Ninja and vcpkg ONLY on non-windows OS's (i.e. Linux and MacOS)
Browse files Browse the repository at this point in the history
  • Loading branch information
nam20485 committed Oct 17, 2023
1 parent c43fe77 commit 0f89524
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,29 +37,38 @@ jobs:
- os: windows-2022
preset: python-x64-release

steps:
steps:

- uses: actions/checkout@v3

#
# != windows-2022 (i.e. Linux, MacOS)
#
- name: Install vcpkg
run: |
git clone --depth 1 https://github.com/Microsoft/vcpkg.git ${{env.VCPKG_ROOT}}
"${{env.VCPKG_ROOT}}/bootstrap-vcpkg.sh"
# only on linux (Windows comes w/ vcpkg installed as part of VS)
if: matrix.os == 'ubuntu-22.04'

# install Ninja
# on all non-Windows os's (Windows comes w/ vcpkg installed as part of VS)
if: matrix.os != 'windows-2022'

- name: Install Ninja
uses: seanmiddleditch/gha-setup-ninja@master
#if: matrix.os == 'ubuntu-22.04'
if: matrix.os != 'windows-2022'

#
# == windows-2022
#
- name: Setup VC Tools
uses: ilammy/msvc-dev-cmd@v1
if: matrix.os == 'windows-2022'

- name: Patch vcpkg
run: scripts/patch-vcpkg-install.ps1
if: matrix.os == 'windows-2022'


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

Expand Down

0 comments on commit 0f89524

Please sign in to comment.