Feature/v0.1 presentation example #35
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C++/C Cmake | |
on: | |
push: | |
branches: [ "*" ] | |
pull_request: | |
branches: [ "*" ] | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
BUILD_TYPE: Release | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download Vulkan SDK | |
run: | | |
Invoke-WebRequest -Uri https://sdk.lunarg.com/sdk/download/latest/windows/vulkan-sdk.exe -OutFile vulkan-sdk.exe | |
Start-Process .\vulkan-sdk.exe -ArgumentList '/S' -Wait | |
shell: powershell | |
- name: Set Vulkan SDK environment variables | |
run: | | |
$vulkanEnv = "C:\VulkanSDK\1.x.xx.x" # Cambia la versión del SDK según sea necesario | |
echo "VULKAN_SDK=$vulkanEnv" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 | |
$env:VULKAN_SDK=$vulkanEnv | |
shell: powershell | |
- 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: Build | |
run: cmake --build ${{github.workspace}}/Ifnity/build --config ${{env.BUILD_TYPE}} | |