Skip to content

Commit

Permalink
Trying to fix up linux workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Honeybunch committed Sep 3, 2024
1 parent aed57b7 commit 2ab822e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- uses: actions/checkout@v4

- name: Configure
run: cmake --preset ${{matrix.toolsets.preset}} -DCOOK_ASSETS=OFF -DCMAKE_C_COMPILER=clang-17 -DCMAKE_CXX_COMPILER=clang++-17
run: cmake --preset ${{matrix.toolsets.preset}} -DCOOK_ASSETS=OFF -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++

- name: Build Debug
run: cmake --build --preset debug-${{matrix.toolsets.preset}}
Expand Down
7 changes: 6 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@ endif()
# but on linux a dxc on the default path will probably have spirv codegen
# so *shrug*
set(CMAKE_FIND_ROOT_PATH "$ENV{VULKAN_SDK}/${VULKAN_BIN_PATH};${CMAKE_FIND_ROOT_PATH}")
find_program(DXC dxc REQUIRED)
find_program(GLTFPACK gltfpack
PATHS ${CMAKE_CURRENT_BINARY_DIR}/vcpkg_installed/${host_triple}/tools/meshoptimizer
REQUIRED)
Expand Down Expand Up @@ -256,6 +255,7 @@ function(cook_shaders out_shader_sources out_shader_headers)
list(APPEND shader_headers ${comp_header} ${comp_out_path})
endforeach()

#[[
file(GLOB shader_files CONFIGURE_DEPENDS "${CMAKE_CURRENT_LIST_DIR}/source/*.hlsl")
foreach(shader ${shader_files})
get_filename_component(filename ${shader} NAME_WLE)
Expand All @@ -276,7 +276,9 @@ function(cook_shaders out_shader_sources out_shader_headers)
list(APPEND shader_headers ${out_paths})
endforeach()
list(APPEND shader_sources ${shader_files})
]]#

#[[
file(GLOB mesh_shader_files CONFIGURE_DEPENDS "${CMAKE_CURRENT_LIST_DIR}/source/*.hlsl.m")
foreach(shader ${mesh_shader_files})
get_filename_component(filename ${shader} NAME_WLE)
Expand All @@ -298,7 +300,9 @@ function(cook_shaders out_shader_sources out_shader_headers)
list(APPEND shader_headers ${out_paths})
endforeach()
list(APPEND shader_sources ${mesh_shader_files})
]]#

#[[
file(GLOB compute_shader_files CONFIGURE_DEPENDS "${CMAKE_CURRENT_LIST_DIR}/source/*.hlsl.cs")
foreach(shader ${compute_shader_files})
get_filename_component(filename ${shader} NAME_WLE)
Expand All @@ -318,6 +322,7 @@ function(cook_shaders out_shader_sources out_shader_headers)
list(APPEND shader_headers ${out_paths})
endforeach()
list(APPEND shader_sources ${compute_shader_files})
]]#

set("${out_shader_sources}" "${shader_sources}" PARENT_SCOPE)
set("${out_shader_headers}" "${shader_headers}" PARENT_SCOPE)
Expand Down

0 comments on commit 2ab822e

Please sign in to comment.