Skip to content

Commit

Permalink
yolo
Browse files Browse the repository at this point in the history
  • Loading branch information
msaroufim committed May 16, 2024
1 parent 106cef2 commit 8264a76
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/nightly-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ jobs:
gpu-arch-version: "12.1"
secrets-env: "PYPI_API_TOKEN"
script: |
# Install dependencies
conda create -n venv python=3.9 -y
conda activate venv
echo "::group::Install newer objcopy that supports --set-section-alignment"
Expand All @@ -33,8 +35,15 @@ jobs:
pip install torch
pip install -r requirements.txt
pip install -r dev-requirements.txt
# Create wheel file
export TORCHAO_NIGHTLY=1
python setup.py sdist bdist_wheel
# Binary validation
pip install dist/torchao*.whl
pytest test --verbose -s
# Upload
REPOSITORY_URL="https://upload.pypi.org/legacy/"
twine upload --repository-url $REPOSITORY_URL -u __token__ -p $PYPI_API_TOKEN dist/

0 comments on commit 8264a76

Please sign in to comment.