Skip to content

Commit

Permalink
Update cmake.yml: use Ninja generator
Browse files Browse the repository at this point in the history
  • Loading branch information
austinEng authored Oct 30, 2023
1 parent e697e63 commit 41e67b7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,14 @@ jobs:
- name: Fetch dependencies
run: python ./tools/fetch_dawn_dependencies.py --use-test-deps --shallow

- name: Set up Ninja
uses: seanmiddleditch/gha-setup-ninja@master

- name: Configure CMake
# 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 ${{ steps.strings.outputs.build-output-dir }}
cmake -G Ninja -B ${{ steps.strings.outputs.build-output-dir }}
-DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
-DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
Expand Down

0 comments on commit 41e67b7

Please sign in to comment.