Skip to content

Commit

Permalink
Rolling back
Browse files Browse the repository at this point in the history
  • Loading branch information
Abelarm committed Oct 20, 2022
1 parent b204469 commit c4a4cee
Showing 1 changed file with 44 additions and 45 deletions.
89 changes: 44 additions & 45 deletions .github/workflows/build_deploy_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,53 @@ on:

jobs:

deploy_wheels_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Deploy wheels - Setup python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Deploy wheels - Install dependencies
run: |
python -m pip install --upgrade setuptools wheel pip twine numpy
- name: Deploy wheels - Build manylinux2014 binary wheels - py3.x - x86_64
uses: RalfG/python-wheels-manylinux-build@v0.3.1-manylinux2014_x86_64
with:
python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310'
build-requirements: 'numpy'
system-packages: 'gcc-gfortran'
pre-build-command: 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/; export SOLCORE_WITH_PDD=1'

- name: Deploy wheels - Build manylinux2014 binary wheels - py3.x - i686
uses: RalfG/python-wheels-manylinux-build@v0.3.1-manylinux2014_i686
with:
python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310'
build-requirements: 'numpy==1.21.4'
system-packages: 'gcc-gfortran'
pre-build-command: 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/; export SOLCORE_WITH_PDD=1'

- name: Publish wheels to PyPI
if: startsWith(github.ref, 'refs/tags')
env:
TWINE_USERNAME: '__token__'
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
twine upload dist/*-manylinux*.whl --skip-existing
- uses: actions/upload-artifact@v3
with:
name: linux_wheels
path: dist/

deploy_wheels_macos_windows:
runs-on: c{{ matrix.os }}
strategy:
matrix:
os: [ macos-latest, windows-latest ]
python-version: [ '3.7', '3.8', '3.9', '3.10' ]
os: [macos-latest, windows-latest]
python-version: ['3.7', '3.8', '3.9', '3.10']
name: Building for ${{ matrix.os }} - python ${{ matrix.python-version }}

steps:
Expand Down Expand Up @@ -62,46 +103,4 @@ jobs:
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}_wheels
path: dist/

deploy_wheels_linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Deploy wheels - Setup python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Deploy wheels - Install dependencies
run: |
python -m pip install --upgrade setuptools wheel pip twine numpy
- name: Deploy wheels - Build manylinux2014 binary wheels - py3.x - x86_64
uses: RalfG/python-wheels-manylinux-build@v0.3.1-manylinux2014_x86_64
with:
python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310'
build-requirements: 'numpy'
system-packages: 'gcc-gfortran'
pre-build-command: 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/; export SOLCORE_WITH_PDD=1'

- name: Deploy wheels - Build manylinux2014 binary wheels - py3.x - i686
uses: RalfG/python-wheels-manylinux-build@v0.3.1-manylinux2014_i686
with:
python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39 cp310-cp310'
build-requirements: 'numpy==1.21.4'
system-packages: 'gcc-gfortran'
pre-build-command: 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/; export SOLCORE_WITH_PDD=1'

- name: Publish wheels to PyPI
if: startsWith(github.ref, 'refs/tags')
env:
TWINE_USERNAME: '__token__'
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
twine upload dist/*-manylinux*.whl --skip-existing
- uses: actions/upload-artifact@v3
with:
name: linux_wheels
path: dist/

path: dist/

0 comments on commit c4a4cee

Please sign in to comment.