auto install ninja-build if generator is using Ninja

This commit is contained in:
Alfi Maulana 2023-01-10 18:22:43 +07:00
parent b861f34750
commit fd57ca9c23
No known key found for this signature in database
GPG Key ID: 2242A64C2A8DF5A4
2 changed files with 5 additions and 3 deletions

View File

@ -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:

View File

@ -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 }}