Skip to content

Commit

Permalink
Fix Windows mingw64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
bvernoux authored Sep 11, 2022
1 parent ff454e1 commit 2c16c96
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,41 @@ jobs:
wget
mingw-w64-x86_64-toolchain
- name: Build glslang tags/sdk-1.3.224.1
run: |
# Windows mingw64 glslang build (as it is not fully integrated in VulkanSDK-1.3.224.1 for Windows and built with Visual Studio 2017)
cd ~
git clone https://github.com/KhronosGroup/glslang.git
cd glslang
git checkout tags/sdk-1.3.224.1
git clone https://github.com/google/googletest.git External/googletest
cd External/googletest
git checkout 0c400f67fcf305869c5fb113dd296eca266c9725
cd ../..
./update_glslang_sources.py
SOURCE_DIR=~/glslang
BUILD_DIR=$SOURCE_DIR/build
mkdir -p $BUILD_DIR
cd $BUILD_DIR
cmake -DCMAKE_BUILD_TYPE=Release -G"MinGW Makefiles" $SOURCE_DIR -DCMAKE_INSTALL_PREFIX="$(pwd)/install"
cmake --build . --config Release --target install
- name: Install Vulkan SDK
run: |
wget https://sdk.lunarg.com/sdk/download/1.3.224.1/windows/VulkanSDK-1.3.224.1-Installer.exe
./VulkanSDK-1.3.224.1-Installer.exe --accept-licenses --default-answer --confirm-command install
echo "/c/VulkanSDK/1.3.224.1/Bin" >> $GITHUB_PATH
- name: Setup Paths and Env for all steps
run: |
rm -f ~/.bash_profile
echo "PATH=/c/VulkanSDK/1.3.224.1/Bin:\$PATH" >> ~/.bash_profile
echo "export VK_SDK_PATH=/c/VulkanSDK/1.3.224.1" >> ~/.bash_profile
echo "export VULKAN_SDK=/c/VulkanSDK/1.3.224.1" >> ~/.bash_profile
echo "export GLSLANG_BUILD_PATH=/mingw64" >> ~/.bash_profile
echo "export GLSLANG_BUILD_PATH=~/glslang/build/install" >> ~/.bash_profile
- name: Build
run: |
cd msys2
Expand Down

0 comments on commit 2c16c96

Please sign in to comment.