mirror of
https://github.com/threeal/cmake-action.git
synced 2026-02-02 03:50:55 +00:00
auto install ninja-build if generator is using Ninja
This commit is contained in:
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 }}
|
||||||
|
|||||||
Reference in New Issue
Block a user