Skip to content

Commit

Permalink
Updated msvc.yml
Browse files Browse the repository at this point in the history
Added submodule checkout, set VCPKG_ROOT, and updated cmake configure step - the same as in cmake.yml.
  • Loading branch information
patrikhuber authored Apr 9, 2023
1 parent 737a406 commit 9f476fb
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/msvc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,18 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: true

- name: "Set VCPKG_ROOT environment variable"
shell: bash
run: |
echo "VCPKG_ROOT=$VCPKG_INSTALLATION_ROOT" >> $GITHUB_ENV
- name: Configure CMake
run: cmake -B ${{ env.build }}
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{env.build}} -DCMAKE_TOOLCHAIN_FILE=${{env.VCPKG_ROOT}}/scripts/buildsystems/vcpkg.cmake -DVCPKG_MANIFEST_FEATURES="ceres"

# Build is not required unless generated source files are used
# - name: Build CMake
Expand Down

0 comments on commit 9f476fb

Please sign in to comment.