v2.15.0 (#773)
Co-authored-by: Kim-Adeline Miguel <51720070+kimadeline@users.noreply.github.com> Co-authored-by: Mathias Gesbert <mathias.gesbert@mistral.ai> Co-authored-by: Maxime Dolores <maxime.dolores@ext.mistral.ai> Co-authored-by: Nelson PROIA <144663685+Nelson-PROIA@users.noreply.github.com> Co-authored-by: Paul VEZIA <166131032+le-codeur-rapide@users.noreply.github.com> Co-authored-by: Pierre Rossinès <pierre.rossines@mistral.ai> Co-authored-by: Quentin <quentin.torroba@mistral.ai> Co-authored-by: Val <102326092+vdeva@users.noreply.github.com> Co-authored-by: Vincent G <10739306+VinceOPS@users.noreply.github.com> Co-authored-by: Mistral Vibe <vibe@mistral.ai>
This commit is contained in:
parent
702d0f412e
commit
cafb6d4147
247 changed files with 12401 additions and 3029 deletions
37
.github/workflows/build-and-upload.yml
vendored
37
.github/workflows/build-and-upload.yml
vendored
|
|
@ -74,34 +74,17 @@ jobs:
|
|||
|
||||
- name: Install Python (Linux)
|
||||
if: ${{ matrix.os == 'linux' }}
|
||||
run: |
|
||||
uv python install 3.12
|
||||
# Install patchelf >= 0.18 (yum/EPEL8 ships 0.12 which lacks --clear-execstack)
|
||||
PATCHELF_VERSION=0.18.0
|
||||
curl -sL "https://github.com/NixOS/patchelf/releases/download/${PATCHELF_VERSION}/patchelf-${PATCHELF_VERSION}-$(uname -m).tar.gz" \
|
||||
| tar xz -C /usr/local
|
||||
# python-build-standalone ships libpython with GNU_STACK RWE (executable stack)
|
||||
# which is rejected by hardened Linux kernels — clear it with patchelf
|
||||
find "$(uv python dir)" -name 'libpython*.so*' -exec patchelf --clear-execstack {} \;
|
||||
shell: bash
|
||||
run: bash ./scripts/ci/setup-linux-pyinstaller-build.sh
|
||||
|
||||
- name: Sync dependencies
|
||||
run: uv sync --no-dev --group build
|
||||
|
||||
- name: Build ACP with PyInstaller
|
||||
run: uv run --no-dev --group build pyinstaller vibe-acp.spec
|
||||
|
||||
- name: Build CLI with PyInstaller
|
||||
run: uv run --no-dev --group build pyinstaller vibe.spec
|
||||
- name: Build PyInstaller binaries
|
||||
shell: bash
|
||||
run: bash ./scripts/ci/build-pyinstaller-binaries.sh vibe-acp.spec vibe.spec
|
||||
|
||||
- name: Clear executable stack on bundled libraries
|
||||
if: ${{ matrix.os == 'linux' }}
|
||||
run: |
|
||||
find dist/vibe-acp-dir/_internal -name '*.so*' -type f -print0 \
|
||||
| xargs -0 -I{} patchelf --clear-execstack {}
|
||||
patchelf --clear-execstack dist/vibe-acp-dir/vibe-acp || true
|
||||
find dist/vibe-dir/_internal -name '*.so*' -type f -print0 \
|
||||
| xargs -0 -I{} patchelf --clear-execstack {}
|
||||
patchelf --clear-execstack dist/vibe-dir/vibe || true
|
||||
shell: bash
|
||||
run: bash ./scripts/ci/clear-linux-execstack.sh dist/vibe-acp-dir dist/vibe-dir
|
||||
|
||||
- name: Get package version
|
||||
id: get_version
|
||||
|
|
@ -193,6 +176,12 @@ jobs:
|
|||
- name: Run ACP smoke tests
|
||||
run: ${{ matrix.container && 'python3.11' || 'python' }} tests/acp/smoke_binary.py dist/vibe-acp-dir
|
||||
|
||||
- name: Run CLI smoke tests
|
||||
shell: bash
|
||||
env:
|
||||
PYTHON_BIN: ${{ matrix.container && 'python3.11' || 'python' }}
|
||||
run: bash ./scripts/ci/smoke-pyinstaller-cli.sh dist/vibe-dir
|
||||
|
||||
attach-to-release:
|
||||
needs: [build-and-upload, smoke-test]
|
||||
runs-on: ubuntu-latest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue