Skip to content

Commit

Permalink
add cl to path so it can be found by cmake on windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
nam20485 committed Oct 17, 2023
1 parent 7476f55 commit 9a155fb
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +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:
Expand All @@ -32,20 +33,22 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: seanmiddleditch/gha-setup-ninja@master

- name: Add cl To Path
run: |
echo ${{env.CL_PATH}} >> $GITHUB_PATH
cl
- name: Install vcpkg
run: |
dir "C:\Program Files\Microsoft Visual Studio\"
dir "C:\Program Files\Microsoft Visual Studio\2022\"
dir "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\"
run: |
dir "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\"
git clone https://github.com/Microsoft/vcpkg.git ${{env.VCPKG_ROOT}}
${{env.VCPKG_ROOT}}/bootstrap-vcpkg.sh
- name: Configure
run: cmake --preset ${{matrix.preset}}

- name: Build
- name: Build
run: cmake --build --preset ${{matrix.preset}}

# - name: Test
Expand Down

0 comments on commit 9a155fb

Please sign in to comment.