Skip to content

Commit

Permalink
Update cmake-single-platform.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsmagd authored Nov 24, 2024
1 parent 9395633 commit 9813062
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/cmake-single-platform.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: C++/C Cmake
name: C++/C CMake

on:
push:
Expand All @@ -7,7 +7,6 @@ on:
branches: [ "*" ]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
Expand All @@ -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/[email protected]
Expand All @@ -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: |
Expand All @@ -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%

0 comments on commit 9813062

Please sign in to comment.