From 9813062d87bd61c6a1d0c521e08c8d1d4261e604 Mon Sep 17 00:00:00 2001 From: alfonsmagd <105669319+alfonsmagd@users.noreply.github.com> Date: Sun, 24 Nov 2024 19:40:40 +0100 Subject: [PATCH] Update cmake-single-platform.yml --- .github/workflows/cmake-single-platform.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cmake-single-platform.yml b/.github/workflows/cmake-single-platform.yml index 4b6cab2..ae6bc5b 100644 --- a/.github/workflows/cmake-single-platform.yml +++ b/.github/workflows/cmake-single-platform.yml @@ -1,4 +1,4 @@ -name: C++/C Cmake +name: C++/C CMake on: push: @@ -7,7 +7,6 @@ on: branches: [ "*" ] env: - # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) BUILD_TYPE: Release jobs: @@ -18,8 +17,8 @@ jobs: - name: Checkout repository and submodules uses: actions/checkout@v4 with: - submodules: true # Incluye los submódulos - fetch-depth: 0 # Clona el historial completo para los submódulos + submodules: true + fetch-depth: 0 - name: Prepare Vulkan SDK uses: humbletim/setup-vulkan-sdk@v1.2.0 @@ -28,6 +27,13 @@ jobs: vulkan-components: Vulkan-Headers, Vulkan-Loader vulkan-use-cache: true + - name: Verify Ninja installation + run: ninja --version + + - name: Install Ninja (if missing) + if: failure() + run: choco install ninja -y + - name: Configure CMake shell: cmd run: | @@ -37,6 +43,6 @@ jobs: -DCMAKE_CXX_COMPILER=cl ^ -DCMAKE_BUILD_TYPE=%BUILD_TYPE% - - name: Build - run: cmake --build ${{github.workspace}}/Ifnity/build --config ${{env.BUILD_TYPE}} + shell: cmd + run: cmake --build %GITHUB_WORKSPACE%/Ifnity/build --config %BUILD_TYPE%