Files
ecoarkpywhl/.gitea/workflows/wheel-pipeline.yaml
root cdc816467d
All checks were successful
EcoArk Wheel Pipeline CI / validate (push) Successful in 1s
fix: replace actions/checkout with native git clone to remove GitHub dependency
The workflow previously used actions/checkout@v4 which fetches from GitHub.
Gitea runner cannot access GitHub due to timeout. Replace with inline
git init + fetch using GITHUB_SERVER_URL / GITHUB_REPOSITORY env vars
provided by Gitea Actions runtime.
2026-05-13 12:00:48 +08:00

74 lines
2.5 KiB
YAML

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
run: |
git init
git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git"
git fetch --depth 1 origin "${GITHUB_SHA}"
git checkout "${GITHUB_SHA}"
- 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."