diff --git a/.github/workflows/cmake-single-platform.yml b/.github/workflows/cmake-single-platform.yml index 8255332..7deccbf 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,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