ci: Build the DirectX shader compiler for macOS.

This commit is contained in:
Giovanni Mascellani 2024-10-16 08:11:55 +02:00 committed by Henri Verbeet
parent 7c3f424a97
commit 19c699870b
Notes: Henri Verbeet 2024-10-17 17:40:01 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1192

View File

@ -36,9 +36,23 @@ image-mac:
tags: tags:
- mac - mac
script: script:
- brew install cmake clang-format
- mkdir image - mkdir image
- mkdir image/dxc
- mkdir image/moltenvk - mkdir image/moltenvk
# The specified commit includes the open sourced libdxil.dylib,
# which is not available yet in any released version
- git clone --recursive https://github.com/microsoft/DirectXShaderCompiler.git
- cd DirectXShaderCompiler
- git checkout dfa1c814cc4c912ba982854b72f64527baa3e7e5
- mkdir build
- cd build
- cmake .. -C ../cmake/caches/PredefinedParams.cmake
- make -j$(sysctl -n hw.ncpu)
- cd ../..
- cp DirectXShaderCompiler/build/lib/libdxcompiler.dylib DirectXShaderCompiler/build/lib/libdxil.dylib image/dxc
- git clone --depth 1 --branch v1.2.9 https://github.com/KhronosGroup/MoltenVK.git - git clone --depth 1 --branch v1.2.9 https://github.com/KhronosGroup/MoltenVK.git
- cd MoltenVK - cd MoltenVK
- ./fetchDependencies --macos - ./fetchDependencies --macos