Skip to content

Commit f7d13d6

Browse files
committed
Fix CI
1 parent 62e5f1a commit f7d13d6

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ readme = "README.md"
1818

1919
requires-python = ">=3.10"
2020
dependencies = [
21+
'setuptools==81.0.0',
2122
'protobuf==4.23.3',
2223
'numpy<2.0.0',
2324
'onnx',

scripts/gap9-build_sdk.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,13 @@ if [ -d "${GAP9_SDK_INSTALL_DIR}/.git" ]; then
2323
cd "${GAP9_SDK_INSTALL_DIR}" || exit 1
2424
git remote set-url origin "${GAP_SDK_URL}" || true
2525
else
26-
echo "Cloning GAP9 SDK..."
27-
GIT_LFS_SKIP_SMUDGE=1 git clone "${GAP_SDK_URL}" "${GAP9_SDK_INSTALL_DIR}"
26+
echo "Directory exists but .git folder is missing. Reinitializing git repository..."
27+
cd "${GAP9_SDK_INSTALL_DIR}" || exit 1
28+
git init
29+
git remote add origin "${GAP_SDK_URL}"
30+
git fetch --all --tags || true
31+
git reset --soft "${GAP9_SDK_COMMIT_HASH}"
32+
git add .
2833
fi
2934

3035
cd "${GAP9_SDK_INSTALL_DIR}" || exit 1
@@ -33,6 +38,7 @@ git fetch --all --tags || true
3338
git stash || true
3439
GIT_LFS_SKIP_SMUDGE=1 git checkout "${GAP9_SDK_COMMIT_HASH}"
3540
git submodule update --init --recursive
41+
git lfs pull --include="*.so" || true
3642

3743
# Platform specific patch
3844
ARCH=$(dpkg --print-architecture 2>/dev/null || true)

0 commit comments

Comments
 (0)