Skip to content

Update build_pc_client.yml #33

Update build_pc_client.yml

Update build_pc_client.yml #33

name: Build PC Client
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: windows-latest
steps:
- name: Vulkan
uses: humbletim/[email protected]
with:
version: 1.3.290.0
- name: Initial Checks
run: cmake --version;
echo %VULKAN_SDK_DIR%;
echo %VULKAN_SDK%;
dir D:/a/Teleport/Teleport/VULKAN_SDK
- name: Checkout
uses: actions/checkout@v4
with:
lfs: 'true'
submodules: 'recursive'
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -S . -B ${{github.workspace}}/build_pc_client -G “Visual Studio 17 2022” -DVULKAN_SDK_DIR=D:/a/Teleport/Teleport/VULKAN_SDK -DVulkan_LIBRARY=D:/a/Teleport/Teleport/VULKAN_SDK/lib/vulkan-1.lib -DVulkan_INCLUDE_DIR=D:/a/Teleport/Teleport/VULKAN_SDK/include -DVulkan_GLSLANG_VALIDATOR_EXECUTABLE=D:/a/Teleport/Teleport/VULKAN_SDK/Bin/glslangvalidator.exe -DVulkan_GLSLC_EXECUTABLE=D:/a/Teleport/Teleport/VULKAN_SDK/Bin/glslc.exe -DCMAKE_BUILD_TYPE=Release -DENABLE_ENCRYPTION=false -DPLATFORM_SUPPORT_OPENGL=false -DPLATFORM_SUPPORT_VULKAN=true -DPLATFORM_SUPPORT_D3D11=false -DPLATFORM_SUPPORT_D3D12=false -DSIMUL_BUILD_SAMPLES=false -DPLATFORM_BUILD_SAMPLES=false -DPLATFORM_BUILD_MD_LIBS=false -DTELEPORT_CLIENT_USE_D3D12=false -DTELEPORT_CLIENT_USE_VULKAN=true
- name: Show CMake Output
run: dir ${{github.workspace}}/build_pc_client
- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build_pc_client --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build_pc_client
# Execute tests defined by the CMake configuration.
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ctest -C ${{env.BUILD_TYPE}}