Files
EnvBao/.gitea/workflows/build-check.yml
T
mattandClaude Sonnet 5.5 e6e3d9049f
build-check / build-check (arm64, linux-arm64, linux-arm64) (push) Successful in 3m21s
test / test (push) Successful in 59s
build-check / build-check (amd64, linux-amd64, linux-amd64) (push) Successful in 1m15s
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>
2026-11-09 16:01:45 +00:00

48 lines
1.7 KiB
YAML

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