Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update cmake-single-platform.yml #13

Closed
wants to merge 10 commits into from
22 changes: 14 additions & 8 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,9 +27,16 @@ jobs:
vulkan-components: Vulkan-Headers, Vulkan-Loader
vulkan-use-cache: true

- name: Configure CMake
run: cmake -S ${{github.workspace}}/Ifnity -B ${{github.workspace}}/Ifnity/build -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Install Ninja
run: choco install ninja -y

- name: Add Ninja to PATH
run: echo "C:\ProgramData\chocolatey\bin" >> $GITHUB_PATH


- name: Build
run: cmake --build ${{github.workspace}}/Ifnity/build --config ${{env.BUILD_TYPE}}
- name: Configure CMake
run: |
cmake -S ${{github.workspace}}/Ifnity -B ${{github.workspace}}/out/build/x64-Debug -DCMAKE_BUILD_TYPE=Debug -DBUILD_SHARED_IFNITY=False

- name: Build Project
run: cmake --build ${{github.workspace}}/out/build/x64-Debug --config Debug
Loading