All checks were successful
EcoArk Wheel Pipeline CI / validate (push) Successful in 1s
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.
74 lines
2.5 KiB
YAML
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."
|