CI: build Linux releases in Debian 12 for older-glibc compatibility; deploy new releases via playbooks repo
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
0cde1ff7f7
commit
e6e3d9049f
2 files changed
+106
-10
No files matched your search
@@ -0,0 +1,47 @@
|
||||
name: build-check
|
||||
# Linux build in Debian 12 + glibc guard, without publishing a release.
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: ["ci/**"]
|
||||
|
||||
jobs:
|
||||
build-check:
|
||||
strategy:
|
||||
fail-fast: true
|
||||
matrix:
|
||||
include:
|
||||
# PyInstaller cannot cross-compile: each target builds on a matching runner.
|
||||
# Building inside Debian 12 (glibc 2.36) keeps the binaries runnable on bookworm and newer.
|
||||
- { runner: linux-amd64, target: linux-amd64, deb_arch: amd64 }
|
||||
- { runner: linux-arm64, target: linux-arm64, deb_arch: arm64 }
|
||||
runs-on: ${{ matrix.runner }}
|
||||
container:
|
||||
image: node:20-bookworm
|
||||
env:
|
||||
VERSION: 0.0.0-check
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
python-version: "3.13"
|
||||
- name: Install dependencies
|
||||
run: uv sync --all-groups --frozen
|
||||
- name: Test
|
||||
run: uv run pytest -q --cov
|
||||
- name: Build one-dir application
|
||||
run: uv run pyinstaller envbao.spec --clean --noconfirm
|
||||
- name: Smoke test
|
||||
run: ./dist/envbao/envbao --version
|
||||
- name: Check glibc requirement is Debian 12 compatible (<= 2.36)
|
||||
run: |
|
||||
max="$(objdump -T dist/envbao/envbao dist/envbao/_internal/*.so* 2>/dev/null | grep -o 'GLIBC_[0-9.]*' | sed 's/GLIBC_//' | sort -Vu | tail -1)"
|
||||
echo "max glibc symbol: ${max}"
|
||||
test "$(printf '%s\n2.36\n' "${max}" | sort -V | tail -1)" = "2.36"
|
||||
- name: Package
|
||||
run: |
|
||||
mkdir -p out
|
||||
tar -C dist -czf "out/envbao-${VERSION}-${{ matrix.target }}.tar.gz" envbao
|
||||
python3 scripts/packaging/build_deb.py "${VERSION}" "${{ matrix.deb_arch }}" dist out
|
||||
ls -l out
|
||||
|
||||
Reference in new issue
Block a user