Skip to content

Commit

Permalink
Update dll_generate.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsmagd authored Oct 19, 2024
1 parent ecef0e5 commit 59d5ce8
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/dll_generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,20 @@ jobs:
vulkan-components: Vulkan-Headers, Vulkan-Loader
vulkan-use-cache: true

- name: Install DXC (DirectX Shader Compiler)
run: |
curl -LO https://github.com/microsoft/DirectXShaderCompiler/releases/download/v1.7.2307/dxc_2023_07_01.zip
tar -xf dxc_2023_07_01.zip
mv dxc_2023_07_01 ${{github.workspace}}/dxc
- name: Set up DXC environment variables
run: |
echo DXC_PATH=${{github.workspace}}/dxc >> $GITHUB_ENV
echo DXC_INCLUDE_DIR=${{github.workspace}}/dxc/inc >> $GITHUB_ENV
echo DXC_LIB_DIR=${{github.workspace}}/dxc/lib/x64 >> $GITHUB_ENV
- 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}} -DBUILD_SHARED_IFNITY=ON
run: cmake -S ${{github.workspace}}/Ifnity -B ${{github.workspace}}/Ifnity/build -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_INCLUDE_PATH=${{env.DXC_INCLUDE_DIR}} -DCMAKE_LIBRARY_PATH=${{env.DXC_LIB_DIR}}

- name: Build
run: cmake --build ${{github.workspace}}/Ifnity/build --config ${{env.BUILD_TYPE}}

0 comments on commit 59d5ce8

Please sign in to comment.