-
Notifications
You must be signed in to change notification settings - Fork 20
62 lines (50 loc) · 1.34 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: Nightly Push
on:
# run every day at 11:15am
schedule:
- cron: '15 11 * * *'
jobs:
nightly:
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
cat Cargo.toml
cat pyproject.toml
- name: Build Wheels
run: |
set -eux
VERSIONS=(
"3.9"
"3.10"
"3.11"
"3.12"
"3.13"
)
for version in "${VERSIONS[@]}"; do
docker run --rm -v $(pwd):/io -t torchft-maturin build --release --out dist --interpreter "$version"
done
- name: Twine Check
run: twine check --strict dist/*
- name: Upload to Pypi
run: twine upload --skip-existing dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.NIGHTLY_PYPI_TOKEN }}