-
Notifications
You must be signed in to change notification settings - Fork 25
47 lines (38 loc) · 1.02 KB
/
nightly.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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 }}