mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-29 14:02:19 +00:00
refactor: remove Python sidecar setup from CI workflows
- Deleted the setup steps for creating a Python sidecar binary in both build.yml and package-and-publish.yml workflows. - Removed the associated script for symlinking the system Python to the sidecar path, simplifying the CI configuration. - Updated package installation steps to exclude Python dependencies, streamlining the build process.
This commit is contained in:
@@ -36,15 +36,7 @@ jobs:
|
||||
- name: Install Tauri dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf python3
|
||||
|
||||
- name: Setup Python sidecar binary
|
||||
run: |
|
||||
TARGET=$(rustc --print host-tuple)
|
||||
PYTHON_PATH=$(which python3)
|
||||
SIDECAR_PATH="src-tauri/runtime-skill-python-${TARGET}"
|
||||
ln -sf "${PYTHON_PATH}" "${SIDECAR_PATH}"
|
||||
echo "Created symlink: ${SIDECAR_PATH} -> ${PYTHON_PATH}"
|
||||
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
|
||||
|
||||
- name: Cache Cargo registry
|
||||
uses: actions/cache@v4
|
||||
|
||||
@@ -199,7 +199,7 @@ jobs:
|
||||
if: matrix.settings.platform == 'ubuntu-22.04'
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf python3
|
||||
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf
|
||||
|
||||
- name: Install OpenMP (macOS only)
|
||||
if: matrix.settings.platform == 'macos-latest'
|
||||
@@ -207,25 +207,6 @@ jobs:
|
||||
brew install libomp
|
||||
echo "OpenMP installed for llama-cpp-sys build"
|
||||
|
||||
- name: Setup Python sidecar binary (Linux)
|
||||
if: matrix.settings.platform == 'ubuntu-22.04'
|
||||
run: |
|
||||
TARGET=$(rustc --print host-tuple)
|
||||
PYTHON_PATH=$(which python3)
|
||||
SIDECAR_PATH="src-tauri/runtime-skill-python-${TARGET}"
|
||||
ln -sf "${PYTHON_PATH}" "${SIDECAR_PATH}"
|
||||
echo "Created symlink: ${SIDECAR_PATH} -> ${PYTHON_PATH}"
|
||||
|
||||
- name: Setup Python sidecar binary (macOS)
|
||||
if: matrix.settings.platform == 'macos-latest'
|
||||
run: |
|
||||
# Extract target from args (e.g., "--target aarch64-apple-darwin" -> "aarch64-apple-darwin")
|
||||
TARGET=$(echo "${{ matrix.settings.args }}" | grep -oE '(aarch64|x86_64)-apple-darwin' || rustc --print host-tuple)
|
||||
PYTHON_PATH=$(which python3 || which python)
|
||||
SIDECAR_PATH="src-tauri/runtime-skill-python-${TARGET}"
|
||||
ln -sf "${PYTHON_PATH}" "${SIDECAR_PATH}"
|
||||
echo "Created symlink: ${SIDECAR_PATH} -> ${PYTHON_PATH}"
|
||||
|
||||
- name: Cache Cargo registry
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user