Skip to content

linux nightly wheel

linux nightly wheel #7

name: "linux nightly wheel"
on:
pull_request:
branches:
- main
schedule:
- cron: "0 0 * * *" # Runs at 0:00 UTC every day
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-nightly
cancel-in-progress: true
jobs:
build_wheels:
name: "Build Wheels - Python ${{ matrix.python-version }}"
runs-on: LiteRT_Linux_x64
strategy:
fail-fast: false # Allow other matrix jobs to continue if one fails
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Build and generate wheel
env:
DOCKER_PYTHON_VERSION: ${{ matrix.python-version }}
CUSTOM_BAZEL_FLAGS: "--config=release_cpu_linux"
USE_LOCAL_TF: "false"
TEST_MANYLINUX_COMPLIANCE: "true"
# Optional: Secrets for PyPI upload
# TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
# TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
export NIGHTLY_RELEASE_DATE=$(date +%Y%m%d)
if [[ -f "ci/build_pip_package_with_docker.sh" ]]; then
chmod +x ci/build_pip_package_with_docker.sh
echo "INFO: Running build_pip_package_with_docker.sh. Ensure 'bazel clean --expunge' is called inside the container before the build."
./ci/build_pip_package_with_docker.sh
else
echo "Error: ci/build_pip_package_with_docker.sh not found!"
exit 1
fi
- name: List generated files
run: |
echo "Generated files in dist/:"
find $(pwd)/dist -type f
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: lite-rt-artifacts-py${{ matrix.python-version }}-${{ github.run_id }}
path: |
dist/*.whl
dist/*.tar.gz