Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
Python agent-contextagent-memoryagent-pluginsagentic-ragcontext-databasedsh-pluginknowledge-basememorymemory-managementself-evolvingvector-database
fix(ci): repair reusable build workflow yaml blocks (#1300)
Jiahui Zhoubc43284ca1da
diff --git a/.github/workflows/_build.yml b/.github/workflows/_build.ymlindex 0ec5079f0..56d8f52e3 100644--- a/.github/workflows/_build.yml+++ b/.github/workflows/_build.yml@@ -249,23 +249,29 @@ jobs:--out "$TMPDIR"cd ../..mkdir -p openviking/lib- python3 -c "-import zipfile, glob, os, sys-whls = glob.glob(os.path.join('$TMPDIR', 'ragfs_python-*.whl'))-assert whls, 'maturin produced no wheel'-with zipfile.ZipFile(whls[0]) as zf:- for name in zf.namelist():- bn = os.path.basename(name)- if bn.startswith('ragfs_python') and (bn.endswith('.so') or bn.endswith('.pyd')):- dst = os.path.join('openviking', 'lib', bn)- with zf.open(name) as src, open(dst, 'wb') as f:- f.write(src.read())- os.chmod(dst, 0o755)- print(f'Extracted {bn} -> {dst}')- sys.exit(0)-print('ERROR: No ragfs_python .so/.pyd found in wheel')-sys.exit(1)- "+ python3 <<PY+ import glob+ import os+ import sys+ import zipfile++ whls = glob.glob(os.path.join("$TMPDIR", "ragfs_python-*.whl"))+ assert whls, "maturin produced no wheel"++ with zipfile.ZipFile(whls[0]) as zf:+ for name in zf.namelist():+ bn = os.path.basename(name)+ if bn.startswith("ragfs_python") and (bn.endswith(".so") or bn.endswith(".pyd")):+ dst = os.path.join("openviking", "lib", bn)+ with zf.open(name) as src, open(dst, "wb") as f:+ f.write(src.read())+ os.chmod(dst, 0o755)+ print(f"Extracted {bn} -> {dst}")+ sys.exit(0)++ print("ERROR: No ragfs_python .so/.pyd found in wheel")+ sys.exit(1)+ PYrm -rf "$TMPDIR"echo "Contents of openviking/lib/:"ls -la openviking/lib/@@ -456,23 +462,29 @@ sys.exit(1)ficd ../..mkdir -p openviking/lib- python3 -c "-import zipfile, glob, os, sys-whls = glob.glob(os.path.join('$TMPDIR', 'ragfs_python-*.whl'))-assert whls, 'maturin produced no wheel'-with zipfile.ZipFile(whls[0]) as zf:- for name in zf.namelist():- bn = os.path.basename(name)- if bn.startswith('ragfs_python') and (bn.endswith('.so') or bn.endswith('.pyd')):- dst = os.path.join('openviking', 'lib', bn)- with zf.open(name) as src, open(dst, 'wb') as f:- f.write(src.read())- os.chmod(dst, 0o755)- print(f'Extracted {bn} -> {dst}')- sys.exit(0)-print('ERROR: No ragfs_python .so/.pyd found in wheel')-sys.exit(1)- "+ python3 <<PY+ import glob+ import os+ import sys+ import zipfile++ whls = glob.glob(os.path.join("$TMPDIR", "ragfs_python-*.whl"))+ assert whls, "maturin produced no wheel"++ with zipfile.ZipFile(whls[0]) as zf:+ for name in zf.namelist():+ bn = os.path.basename(name)+ if bn.startswith("ragfs_python") and (bn.endswith(".so") or bn.endswith(".pyd")):+ dst = os.path.join("openviking", "lib", bn)+ with zf.open(name) as src, open(dst, "wb") as f:+ f.write(src.read())+ os.chmod(dst, 0o755)+ print(f"Extracted {bn} -> {dst}")+ sys.exit(0)++ print("ERROR: No ragfs_python .so/.pyd found in wheel")+ sys.exit(1)+ PYrm -rf "$TMPDIR"echo "Contents of openviking/lib/:"ls -la openviking/lib/