forked from pyscf/gpu4pyscf
-
Notifications
You must be signed in to change notification settings - Fork 1
72 lines (68 loc) · 2.13 KB
/
pypi_wheel.yml
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
63
64
65
66
67
68
69
70
71
72
name: PyPI-wheel
on:
release:
types:
# Note: editing the prerelease then marking as release does not trigger
# this pipeline
# - prereleased
- released
workflow_dispatch:
jobs:
release-pypi-linux-cuda11:
runs-on: ubuntu-latest
env:
img: wxj6000/manylinux2014:cuda118
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build wheels
run: |
docker run --rm -v ${{ github.workspace }}:/gpu4pyscf:rw --workdir=/gpu4pyscf \
-e CMAKE_CONFIGURE_ARGS="-DBUILD_LIBXC=OFF" \
${{ env.img }} \
bash -exc 'sh /gpu4pyscf/builder/build_wheels.sh'
- name: List available wheels
run: |
ls ${{ github.workspace }}/wheelhouse
- name: Publish to PyPI
run: |
pip install twine
export TWINE_USERNAME=__token__
export TWINE_PASSWORD="${{ secrets.PYPI_API_TOKEN }}"
twine upload --verbose "${{ github.workspace }}/wheelhouse/*"
release-pypi-linux-cuda12:
runs-on: ubuntu-latest
env:
img: wxj6000/manylinux2014:cuda121
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build wheels
run: |
docker run --rm -v ${{ github.workspace }}:/gpu4pyscf:rw --workdir=/gpu4pyscf \
-e CMAKE_CONFIGURE_ARGS="-DBUILD_LIBXC=OFF" \
${{ env.img }} \
bash -exc 'sh /gpu4pyscf/builder/build_wheels.sh'
- name: List available wheels
run: |
ls ${{ github.workspace }}/wheelhouse
- name: Publish to PyPI
run: |
pip install twine
export TWINE_USERNAME=__token__
export TWINE_PASSWORD="${{ secrets.PYPI_API_TOKEN }}"
twine upload --verbose "${{ github.workspace }}/wheelhouse/*"
release-pypi-sdist:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build sdist
run: |
python3 setup.py sdist
- name: Publish to PyPI
run: |
pip install twine
export TWINE_USERNAME=__token__
export TWINE_PASSWORD="${{ secrets.PYPI_API_TOKEN }}"
twine upload --verbose "${{ github.workspace }}/dist/*"