Skip to content

Commit

Permalink
Add VC++ 2019 Environment setup for different architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
ak5k committed Jan 3, 2024
1 parent 632d0f2 commit d879bd2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,19 @@ jobs:
# brew install cmake ninja
fi
- name: VC++ 2019 Environment
working-directory: ${{ github.workspace }}
# Execute tests defined by the CMake configuration
shell: cmd
run: |
if "${{ matrix.arch }}" == "x64"
then
call "C:\Program Files (x86)\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
elif "${{ matrix.arch }}" == "x86"
then
call "C:\Program Files (x86)\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars32.bat"
fi
- name: Configure CMake
# Note the current configuration is for a basic C++ project. You'll need to update this for your specific needs.
run: cmake -B ${{ github.workspace }} ${{matrix.ninja}} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -S ${{ github.workspace }} -DCMAKE_OSX_ARCHITECTURES="${{ matrix.arch }}"
Expand Down

0 comments on commit d879bd2

Please sign in to comment.