From 19c699870bfe4f46b93a0ce8e9aa98b0b6377bc2 Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Wed, 16 Oct 2024 08:11:55 +0200 Subject: [PATCH] ci: Build the DirectX shader compiler for macOS. --- gitlab/image.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/gitlab/image.yml b/gitlab/image.yml index b05cc81a..8ef0ed07 100644 --- a/gitlab/image.yml +++ b/gitlab/image.yml @@ -36,9 +36,23 @@ image-mac: tags: - mac script: + - brew install cmake clang-format - mkdir image + - mkdir image/dxc - 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 - cd MoltenVK - ./fetchDependencies --macos