mirror of
https://github.com/threeal/cmake-action.git
synced 2025-06-08 18:21: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
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3.3.0
|
uses: actions/checkout@v3.3.0
|
||||||
|
|
||||||
- name: Install Ninja
|
|
||||||
run: sudo apt install -y ninja-build
|
|
||||||
|
|
||||||
- name: Use this action with specified generator
|
- name: Use this action with specified generator
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
|
@ -48,6 +48,11 @@ runs:
|
|||||||
echo "CMAKE_CONFIGURE_ARGS=${CONFIGURE_ARGS//[$'\t\r\n']}" >> $GITHUB_ENV
|
echo "CMAKE_CONFIGURE_ARGS=${CONFIGURE_ARGS//[$'\t\r\n']}" >> $GITHUB_ENV
|
||||||
echo "CMAKE_BUILD_ARGS=${BUILD_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
|
- name: Configure CMake
|
||||||
shell: bash
|
shell: bash
|
||||||
run: cmake ${{ env.CMAKE_CONFIGURE_ARGS }}
|
run: cmake ${{ env.CMAKE_CONFIGURE_ARGS }}
|
||||||
|
Loading…
Reference in New Issue
Block a user