File tree Expand file tree Collapse file tree 1 file changed +26
-4
lines changed
Expand file tree Collapse file tree 1 file changed +26
-4
lines changed Original file line number Diff line number Diff line change @@ -44,14 +44,36 @@ jobs:
4444 version=${{ matrix.python-version }}
4545 docker run -e BUILD_DOCKER_ENV=1 -e CUDACXX=/usr/local/cuda-11.3/bin/nvcc -e PATH="/opt/rh/devtoolset-9/root/usr/bin:$PATH" -e LD_LIBRARY_PATH="/opt/rh/devtoolset-9/root/usr/lib64:/opt/rh/devtoolset-9/root/usr/lib:/usr/local/nvidia/lib:/usr/local/nvidia/lib64:$LD_LIBRARY_PATH" -v ${{ github.workspace }}:/workspace/BMTrain -i pytorch/manylinux-cuda113:latest /bin/bash -c "cd /workspace/BMTrain;/opt/python/cp${version}*/bin/pip install build; /opt/python/cp${version}*/bin/python -m build .;for file in dist/*-linux_x86_64.whl; do mv \"\$file\" \"\${file//-linux_x86_64/-manylinux2014_x86_64}\"; done"
4646
47+ - name : Upload wheels as artifacts
48+ uses : actions/upload-artifact@v4
49+ with :
50+ name : wheels_py${{ matrix.python-version }}
51+ path : |
52+ dist/*.whl
53+ dist/*.tar.gz
54+
55+ archive :
56+ runs-on : ubuntu-latest
57+ needs : build-wheels
58+ steps :
59+ - name : Download all wheels
60+ uses : actions/download-artifact@v4
61+ with :
62+ path : dist
63+ pattern : |
64+ wheels_py*/*.whl
65+ wheels_py37/*.tar.gz
66+
67+ - name : Combine all wheels into a single directory
68+ run : |
69+ mkdir -p dist
70+ find . -path './dist' -prune -o -name '*.whl' -exec mv {} dist/ \;
71+
4772 - name : Archive distribution files
4873 uses : actions/upload-artifact@v4
4974 with :
5075 name : dist
5176 path : |
5277 dist/*.tar.gz
5378 dist/*.whl
54- overwrite : true
55-
56-
57-
79+ overwrite : true
You can’t perform that action at this time.
0 commit comments