Skip to content

Commit

Permalink
bonk
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan09811 authored Jun 9, 2024
1 parent f9334c4 commit 7f0f6ec
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/setup-glslang.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash
set -e

# Variables
GLSLANG_ZIP_URL="https://github.com/KhronosGroup/glslang/releases/download/master-tot/glslang-master-windows-x64-Release.zip"
GLSLANG_DIR="${GITHUB_WORKSPACE}/glslang"
GLSLANG_ZIP="${GITHUB_WORKSPACE}/glslang.zip"
GLSLANG_VALIDATOR="${GLSLANG_DIR}/bin/glslangValidator.exe"

# Download glslang
echo "Downloading glslang from ${GLSLANG_ZIP_URL}..."
curl -L -o ${GLSLANG_ZIP} ${GLSLANG_ZIP_URL}

# Extract glslang
echo "Extracting glslang..."
mkdir -p ${GLSLANG_DIR}
unzip -q ${GLSLANG_ZIP} -d ${GLSLANG_DIR}

# Verify glslangValidator installation
echo "Verifying glslangValidator installation..."
if [ -f "${GLSLANG_VALIDATOR}" ]; then
echo "glslangValidator is installed successfully."
${GLSLANG_VALIDATOR} --version
else
echo "Error: glslangValidator could not be found." >&2
exit 1
fi

# Update PATH
echo "Adding glslang to PATH..."
echo "${GLSLANG_DIR}/bin" >> $GITHUB_PATH

echo "glslang setup completed successfully."

0 comments on commit 7f0f6ec

Please sign in to comment.