forked from wheremyfoodat/Panda3DS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f9334c4
commit 7f0f6ec
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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." |