Skip to content

Commit

Permalink
new repo due to the limit of git lfs
Browse files Browse the repository at this point in the history
  • Loading branch information
valord577 committed May 13, 2024
1 parent 4606c71 commit 22b53b4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 43 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/_buildx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
required: false
type: boolean
disable_upload:
default: false
default: true
required: false
type: boolean

Expand Down
33 changes: 0 additions & 33 deletions .github/workflows/ffmpeg.yml

This file was deleted.

8 changes: 6 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,12 @@ function compile() {
export PKG_PLATFORM="${3}"
export PKG_ARCH="${4}"

export PKG_BULD_DIR=${BULD_DIR:-"${PROJ_ROOT}/tmp/${PKG_NAME}/${PKG_PLATFORM}/${PKG_ARCH}"}
export PKG_INST_DIR=${INST_DIR:-"${PROJ_ROOT}/out/${PKG_NAME}/${PKG_PLATFORM}/${PKG_ARCH}"}
export PKG_BULD_DIR="${PROJ_ROOT}/tmp/${PKG_NAME}/${PKG_PLATFORM}/${PKG_ARCH}"
export PKG_INST_DIR="${PROJ_ROOT}/out/${PKG_NAME}/${PKG_PLATFORM}/${PKG_ARCH}"
if [ "${GITHUB_ACTIONS}" == "true" ]; then
if [ -n "${BULD_DIR}" ]; then { export PKG_BULD_DIR="${BULD_DIR}"; } fi
if [ -n "${INST_DIR}" ]; then { export PKG_INST_DIR="${BULD_DIR}"; } fi
fi

if [ ! -e "${SUBPROJ_SRC}/.git" ]; then
pushd -- "${PROJ_ROOT}"
Expand Down
9 changes: 2 additions & 7 deletions pkg-conf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ fi
if [ -z "${PROJ_ROOT}" ]; then
PROJ_ROOT=$(cd "$(dirname ${BASH_SOURCE[0]})"; pwd)
fi
if [ "${GITHUB_ACTIONS}" == "true" ]; then
pushd -- "${PROJ_ROOT}"; { git lfs fetch --all --prune; }; popd
fi
export PKG_DEPS_PATH="${PROJ_ROOT}/lib"
{ rm -rf "${PKG_DEPS_PATH}"; mkdir -p "${PKG_DEPS_PATH}"; }

Expand All @@ -27,12 +24,10 @@ function dl_pkgc() {
fi
printf "\e[1m\e[36m%s\e[0m\n" "dl_filename='${dl_filename}'"

pushd -- "${PROJ_ROOT}"
pushd -- "${PKG_DEPS_PATH}"
{
set -x
git archive --format=tar origin/packages ${pkg_name}/${pkg_version}/${dl_filename} \
| tar -xvf - -C "${PKG_DEPS_PATH}" --strip-components=2 --no-same-owner
unzip -q "${PKG_DEPS_PATH}/${dl_filename}" -d "${PKG_DEPS_PATH}"
ln -sfn ../out/${pkg_name}/${PKG_PLATFORM}/${PKG_ARCH} ${pkg_name}
set +x
}
popd
Expand Down

0 comments on commit 22b53b4

Please sign in to comment.