summaryrefslogtreecommitdiffstats
path: root/github_test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'github_test.sh')
-rw-r--r--github_test.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/github_test.sh b/github_test.sh
index f36a0b950..b18566f84 100644
--- a/github_test.sh
+++ b/github_test.sh
@@ -11,6 +11,16 @@ fi
PLATFORM=$(uname -s | tr '[:upper:]' '[:lower:]')
ARCHITECTURE=$(uname -p)
+# Darwin is actually macosx (for paths etc)
+if [ "${PLATFORM}" == "darwin" ]; then
+ PLATFORM="macosx"
+
+ # Modern OSX is only 64 bit, so assume that
+ if [ "${ARCHITECTURE}" == "i386" ]; then
+ ARCHITECTURE="x64"
+ fi
+fi
+
if [ "${ARCHITECTURE}" == "x86_64" ]; then
ARCHITECTURE="x64"
fi
@@ -19,7 +29,7 @@ TARGET=${PLATFORM}-${ARCHITECTURE}
OUTPUTDIR=bin/${TARGET}/${CONFIGURATION}/
-if [ "${ARCHITECTURE}" == "x64" ]; then
+if [ "${ARCHITECTURE}" == "x64" -a "${PLATFORM}" != "macosx" ]; then
LOCATION=$(curl -s https://api.github.com/repos/shader-slang/swiftshader/releases/latest \
| grep "tag_name" \
| awk '{print "https://github.com/shader-slang/swiftshader/releases/download/" substr($2, 2, length($2)-3) "/vk_swiftshader_linux_x64.zip"}')