summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2024-07-10 16:45:27 -0700
committerGitHub <noreply@github.com>2024-07-10 16:45:27 -0700
commitc5852781da0c04cdce265e887eaca17ffd2b4017 (patch)
tree2b659a6e3a676c5db808395695068b149b0b43b3
parent5006f4907619f53444c65b67f765d96ecef43c81 (diff)
Delete unused build scripts. (#4601)
* Fix macos release script. * Delete shell scripts
-rw-r--r--.github/github_test.sh51
-rw-r--r--.github/workflows/release.yml4
-rw-r--r--github_build.sh47
-rw-r--r--github_macos_build.sh32
4 files changed, 0 insertions, 134 deletions
diff --git a/.github/github_test.sh b/.github/github_test.sh
deleted file mode 100644
index 68f321731..000000000
--- a/.github/github_test.sh
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/usr/bin/env bash
-
-
-PLATFORM=$(uname -s | tr '[:upper:]' '[:lower:]')
-ARCHITECTURE=$(uname -m)
-
-# 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
-
-if [ "${ARCHITECTURE}" == "arm64" ]; then
- ARCHITECTURE="aarch64"
-fi
-
-# CONFIGURATION=release or debug
-if [ "${CC}" == "gcc" ] && [ "${CONFIGURATION}" == "release" ] && [ "${ARCHITECTURE}" == "x64" ]
-then
- SLANG_TEST_CATEGORY=full
-else
- SLANG_TEST_CATEGORY=smoke
-fi
-
-if [ "${PLATFORM}" == "macosx" ]; then
- SLANG_TEST_CATEGORY=full
-fi
-
-TARGET=${PLATFORM}-${ARCHITECTURE}
-
-OUTPUTDIR=bin/${TARGET}/${CONFIGURATION}/
-
-if [ "${ARCHITECTURE}" == "x64" -a "${PLATFORM}" != "macosx" ]; then
- unzip vk_swiftshader_linux_x64.zip -d $OUTPUTDIR
-fi
-
-SLANG_TEST=${OUTPUTDIR}slang-test
-
-export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OUTPUTDIR
-export PATH=$PATH:${OUTPUTDIR}
-export SLANG_RUN_SPIRV_VALIDATION=1
-export SLANG_USE_SPV_SOURCE_LANGUAGE_UNKNOWN=1
-${SLANG_TEST} -bindir ${OUTPUTDIR} -travis -category ${SLANG_TEST_CATEGORY} ${SLANG_TEST_FLAGS} -api all-vk -expected-failure-list tests/expected-failure-github.txt
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 16755b82e..b964c1697 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -123,10 +123,6 @@ jobs:
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k ${KEYCHAIN_PASSWORD} $KEYCHAIN_PATH
- signedFiles
- find "${bin_dir}" "${lib_dir}" -type f -perm +111 \
- | xargs codesign --force --options runtime -s "${IDENTITY_ID}" -v
-
binaries=(
"${lib_dir}/libslang.dylib"
"${lib_dir}/libslang-rt.dylib"
diff --git a/github_build.sh b/github_build.sh
deleted file mode 100644
index aa1f9e8f9..000000000
--- a/github_build.sh
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/usr/bin/env bash
-# Get premake
-if [[ "aarch64" == "${ARCH}" ]]; then
-wget https://github.com/shader-slang/slang-binaries/blob/master/premake/premake-5.0.0-alpha16/bin/linux-arm64/premake5?raw=true -O premake5
-else
-wget https://github.com/shader-slang/slang-binaries/blob/master/premake/premake-5.0.0-alpha16/bin/linux-64/premake5?raw=true -O premake5
-fi
-chmod u+x premake5
-
-# generate slang-tag-version.h
-git describe --tags | sed -e "s/\(.*\)/\#define SLANG_TAG_VERSION \"\1\"/" > slang-tag-version.h
-cat slang-tag-version.h
-
-if [[ "" == "${TARGETARCH}" ]]; then
-TARGETARCH=${ARCH}
-fi
-
-glslangBuildFlag=""
-if [[ "aarch64" == "${TARGETARCH}" && "release" == "${CONFIGURATION}" ]]; then
- glslangBuildFlag="--build-glslang=true"
-fi
-
-if [[ ! -z ${GLIBC_COMPATIBLE} ]]; then
- glibcCompatible="--glibc-forward-compatible=true"
-fi
-
-if [[ "${ARCH}" != "${TARGETARCH}" ]]; then
-
-# Create the makefile
-./premake5 gmake2 --cc=${CC} --enable-embed-stdlib=true --arch=${ARCH} --deps=true --no-progress=true ${glslangBuildFlag}
-
-# Build the configuration
-make config=${CONFIGURATION}_${ARCH} -j`nproc`
-
-rm -rf ./bin
-
-# Create the makefile
-./premake5 gmake2 --cc=${CC} --enable-embed-stdlib=true --arch=${TARGETARCH} --deps=true --no-progress=true --skip-source-generation=true --deploy-slang-llvm=false --deploy-slang-glslang=false ${glslangBuildFlag}
-
-else
-# Create the makefile
-./premake5 gmake2 --cc=${CC} --enable-embed-stdlib=true --arch=${TARGETARCH} --deps=true --no-progress=true ${glslangBuildFlag} ${glibcCompatible}
-fi
-
-# Build the configuration
-make config=${CONFIGURATION}_${TARGETARCH} -j`nproc`
-
diff --git a/github_macos_build.sh b/github_macos_build.sh
deleted file mode 100644
index 04cd3e0c9..000000000
--- a/github_macos_build.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/usr/bin/env bash
-# Get premake
-wget https://github.com/shader-slang/slang-binaries/blob/master/premake/premake-5.0.0-alpha16/bin/osx/premake5?raw=true -O premake5
-chmod u+x premake5
-
-# generate slang-tag-version.h
-git describe --tags | sed -e "s/\(.*\)/\#define SLANG_TAG_VERSION \"\1\"/" > slang-tag-version.h
-cat slang-tag-version.h
-
-if [[ "" == "${TARGETARCH}" ]]; then
-TARGETARCH=${ARCH}
-fi
-
-if [[ "${ARCH}" != "${TARGETARCH}" ]]; then
-
-# Create the makefile
-./premake5 gmake2 --cc=${CC} --enable-xlib=false --enable-embed-stdlib=true --arch=${ARCH} --deps=true --no-progress=true
-
-# Build the configuration
-make config=${CONFIGURATION}_${ARCH} -j`sysctl -n hw.ncpu`
-
-rm -rf ./bin
-
-# Create the makefile
-./premake5 gmake2 --cc=${CC} --enable-xlib=false --enable-embed-stdlib=true --arch=${TARGETARCH} --deps=true --build-glslang=true --no-progress=true --skip-source-generation=true --deploy-slang-llvm=false --deploy-slang-glslang=false
-make config=${CONFIGURATION}_${TARGETARCH} -j`sysctl -n hw.ncpu`
-else
-# Create the makefile
-./premake5 gmake2 --cc=${CC} --enable-xlib=false --enable-embed-stdlib=true --arch=${TARGETARCH} --deps=true --build-glslang=true --no-progress=true --deploy-slang-glslang=false
-# Build the configuration
-make config=${CONFIGURATION}_${TARGETARCH} -j`sysctl -n hw.ncpu`
-fi