Switch to GitHub actions

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
This commit is contained in:
Tomas Slusny
2020-10-24 17:18:00 +02:00
committed by Adam
parent 2dafade4d1
commit c4f019aff0
6 changed files with 51 additions and 29 deletions

18
ci/build.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
set -e -x
CACHEDIR="$HOME/.cache/runelite"
mkdir -p "${CACHEDIR}"
GLSLANG_ARCHIVE="${CACHEDIR}/glslang.zip"
GLSLANG_DIR="${CACHEDIR}/glslang"
GLSLANG_RELEASE='https://github.com/KhronosGroup/glslang/releases/download/8.13.3559/glslang-master-linux-Release.zip'
GLSLANG_CHECKSUM='9adcfdef5b52275e61068aafbb62747936c6c18ab6dc32a6ef707cfc7b0df423'
if [ ! -f "${GLSLANG_ARCHIVE}" ] || [ ! -d "${GLSLANG_DIR}" ] || ! echo "${GLSLANG_CHECKSUM} ${GLSLANG_ARCHIVE}" | sha256sum -c -; then
wget -O "${GLSLANG_ARCHIVE}" "${GLSLANG_RELEASE}"
echo "${GLSLANG_CHECKSUM} ${GLSLANG_ARCHIVE}" | sha256sum -c
unzip -o -q "${GLSLANG_ARCHIVE}" -d "${GLSLANG_DIR}"
fi
mvn clean install --settings ci/settings.xml -Dglslang.path="${GLSLANG_DIR}/bin/glslangValidator"