mirror of
https://github.com/threeal/cmake-action.git
synced 2025-04-21 11:01:20 +00:00
auto install ninja-build
if generator is using Ninja
This commit is contained in:
parent
b861f34750
commit
fd57ca9c23
3
.github/workflows/test.yml
vendored
3
.github/workflows/test.yml
vendored
@ -79,9 +79,6 @@ jobs:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3.3.0
|
||||
|
||||
- name: Install Ninja
|
||||
run: sudo apt install -y ninja-build
|
||||
|
||||
- name: Use this action with specified generator
|
||||
uses: ./
|
||||
with:
|
||||
|
@ -48,6 +48,11 @@ runs:
|
||||
echo "CMAKE_CONFIGURE_ARGS=${CONFIGURE_ARGS//[$'\t\r\n']}" >> $GITHUB_ENV
|
||||
echo "CMAKE_BUILD_ARGS=${BUILD_ARGS//[$'\t\r\n']}" >> $GITHUB_ENV
|
||||
|
||||
- name: Install Ninja
|
||||
if: ${{ inputs.generator == 'Ninja' }}
|
||||
shell: bash
|
||||
run: sudo apt install -y ninja-build
|
||||
|
||||
- name: Configure CMake
|
||||
shell: bash
|
||||
run: cmake ${{ env.CMAKE_CONFIGURE_ARGS }}
|
||||
|
Loading…
Reference in New Issue
Block a user