Skip to content

.github: add nightly wheel builds #1

.github: add nightly wheel builds

.github: add nightly wheel builds #1

Workflow file for this run

name: Nightly Build
on:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
architecture: x64
- name: Checkout
uses: actions/checkout@v4
- name: Install Dependencies
run: |
set -eux
pip install -U twine toml
- name: Build Docker
run: |
set -eux
docker build --progress=plain -t torchft-maturin .
- name: Set Nightly Version
run: |
set -eux
python scripts/patch_nightly_version.py
- name: Build Wheels
uses: PyO3/maturin-action@v1
with:
container: torchft-maturin
args: --release --out dist --interpreter '3.10'
- name: Twine Check
run: twine check --strict dist/*
- name: Upload to Pypi
run: twine upload dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.pypi_token }}