Skip to content

Commit

Permalink
Debug release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
sunqm committed May 31, 2024
1 parent d61d645 commit 875fae1
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,17 @@ jobs:
- uses: actions/checkout@v4
- name: Build wheels
run: |
docker run --rm -v ${{ github.workspace }}:/src/pyscf:rw --workdir=/src/pyscf \
docker run --rm -v ${{ github.workspace }}:/src/pyscf-forge:rw --workdir=/src/pyscf-forge \
${{ env.img }} \
bash -exc '/opt/python/cp39-cp39/bin/pip install --upgrade pip setuptools && \
yum install -y epel-release && \
yum-config-manager --enable epel && \
yum install -y openblas-devel gcc && \
export src=${GITHUB_WORKSPACE:-/src/pyscf} && \
export dst=${GITHUB_WORKSPACE:-/src/pyscf}/linux-wheels && \
export src=${GITHUB_WORKSPACE:-/src/pyscf-forge} && \
export dst=${GITHUB_WORKSPACE:-/src/pyscf-forge}/linux-wheels && \
mkdir -p /root/wheelhouse $src/linux-wheels && \
sed -i "/ if basename(fn) not in needed_libs:/s/basename.*libs/1/" /opt/_internal/pipx/venvs/auditwheel/lib/python*/site-packages/auditwheel/wheel_abi.py && \
/opt/python/cp39-cp39/bin/pip install pyscf && \
export PATH=/opt/python/cp39-cp39/bin:$PATH && \
/opt/python/cp39-cp39/bin/pip wheel -v --no-deps --no-clean -w /root/wheelhouse $src && \
export whl=`ls /root/wheelhouse/pyscf-*-linux_*.whl` && \
auditwheel -v repair "$whl" --lib-sdir /lib -w $dst'
Expand All @@ -42,10 +42,6 @@ jobs:

release-pypi-aarch64:
runs-on: ubuntu-latest
strategy:
matrix:
pyver: [cp39-cp39]
fail-fast: false
env:
img: quay.io/pypa/manylinux2014_aarch64:2023-03-12-25fd859
steps:
Expand All @@ -56,18 +52,19 @@ jobs:
uses: docker/setup-qemu-action@v2
- name: Build Wheel
run: |
docker run --rm -v ${{ github.workspace }}:/src/pyscf:rw --workdir=/src/pyscf \
docker run --rm -v ${{ github.workspace }}:/src/pyscf-forge:rw --workdir=/src/pyscf-forge \
${{ env.img }} \
bash -exc '/opt/python/${{ matrix.pyver }}/bin/pip install --upgrade pip setuptools && \
bash -exc '/opt/python/cp39-cp39/bin/pip install --upgrade pip setuptools && \
yum install -y epel-release && \
yum-config-manager --enable epel && \
yum install -y openblas-devel gcc && \
export src=${GITHUB_WORKSPACE:-/src/pyscf} && \
export dst=${GITHUB_WORKSPACE:-/src/pyscf}/linux-wheels && \
export src=${GITHUB_WORKSPACE:-/src/pyscf-forge} && \
export dst=${GITHUB_WORKSPACE:-/src/pyscf-forge}/linux-wheels && \
mkdir -p /root/wheelhouse $src/linux-wheels && \
sed -i "/ if basename(fn) not in needed_libs:/s/basename.*libs/1/" /opt/_internal/pipx/venvs/auditwheel/lib/python*/site-packages/auditwheel/wheel_abi.py && \
/opt/python/cp39-cp39/bin/pip install pyscf h5py==3.10 && \
/opt/python/${{ matrix.pyver }}/bin/pip wheel -v --no-deps --no-clean -w /root/wheelhouse $src && \
/opt/python/cp39-cp39/bin/pip install h5py==3.10 && \
export PATH=/opt/python/cp39-cp39/bin:$PATH && \
/opt/python/cp39-cp39/bin/pip wheel -v --no-deps --no-clean -w /root/wheelhouse $src && \
export whl=`ls /root/wheelhouse/pyscf-*-linux_*.whl` && \
auditwheel -v repair "$whl" --lib-sdir /lib -w $dst'
- name: List available wheels
Expand Down

0 comments on commit 875fae1

Please sign in to comment.