Skip to content

Commit

Permalink
Update CMake build commands
Browse files Browse the repository at this point in the history
  • Loading branch information
ak5k committed Jan 3, 2024
1 parent 64cf938 commit de747dc
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,24 @@ jobs:
shell: cmd
run: |
call "%ProgramFiles%\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
cmake -B ${{ github.workspace }} -G "Ninja" -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl -S ${{ github.workspace }}"
cmake -B ${{ github.workspace }} -G "Ninja" ^
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }} ^
-DCMAKE_C_COMPILER=cl ^
-DCMAKE_CXX_COMPILER=cl ^
-S ${{ github.workspace }}"
cmake --build ${{ github.workspace }} --config ${{ matrix.build_type }}
- name: Unix-like
# Note the current configuration is for a basic C++ project. You'll need to update this for your specific needs.
if: runner.os != 'Windows'
run: |
cmake -B ${{ github.workspace }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -S ${{ github.workspace }} -DCMAKE_OSX_ARCHITECTURES="${{ matrix.arch }}"
cmake --build ${{ github.workspace }} --config ${{ matrix.build_type }}
- name: Build
# Build your program with the given configuration
run: cmake --build ${{ github.workspace }} --config ${{ matrix.build_type }}
# - name: Build
# # Build your program with the given configuration
# run: cmake --build ${{ github.workspace }} --config ${{ matrix.build_type }}

- name: CTest
working-directory: ${{ github.workspace }}
Expand Down

0 comments on commit de747dc

Please sign in to comment.