ci: add Gitea Actions workflow for wheel pipeline validation
Some checks failed
EcoArk Wheel Pipeline CI / validate (push) Failing after 8m59s

- .gitea/workflows/wheel-pipeline.yaml: checkout → env info → gen test
  wheels → pure repack test → native stub test → summary
- runs-on: ubuntu-latest (matches registered runner label)
- .gitignore: exclude generated test wheels
- README: add '通过 Gitea Actions 触发流水线' section
This commit is contained in:
root
2026-05-13 11:53:17 +08:00
parent f9d9f8ec07
commit ea6a53bdc7
3 changed files with 89 additions and 0 deletions

View File

@ -0,0 +1,69 @@
name: EcoArk Wheel Pipeline CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
# ──────────────────────────────────────────────
# Job 1: validate — pure wheel repack + native stub
# ──────────────────────────────────────────────
validate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Show environment info
run: |
echo "══════════════════════════════════════════"
echo " Runner : $(uname -a)"
echo " Hostname: $(hostname)"
echo " Date : $(date -u +%Y-%m-%dT%H:%M:%SZ)"
echo "══════════════════════════════════════════"
python3 --version
pip3 --version 2>/dev/null || echo "pip3 not available"
which make gcc g++ rustc 2>/dev/null || true
- name: Generate test wheels
run: |
python3 examples/gen_test_wheels.py
- name: Show generated test wheels
run: |
ls -lh examples/*.whl
- name: Validate pure wheel repack
run: |
WHEEL=$(ls examples/*-none-any.whl | head -1)
echo "Pure wheel: $WHEEL"
python3 wheel_pipeline.py "$WHEEL" --output-dir output
echo ""
echo "Output files:"
ls -lh output/*.whl
- name: Validate native wheel stub
run: |
WHEEL=$(ls examples/*-manylinux*.whl | head -1)
echo "Native wheel: $WHEEL"
python3 wheel_pipeline.py "$WHEEL" --output-dir output --target-os harmonyos --arch arm64
echo ""
echo "Output files:"
ls -lh output/*.whl
- name: Show all pipeline outputs
run: |
echo "=== Final output directory ==="
find output/ -type f -name '*.whl' -exec ls -lh {} \;
echo ""
echo "=== All output artifacts ==="
find output/ -type f | sort
- name: Summary
run: |
echo "All pipeline steps passed successfully."