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%