Skip to content

Commit

Permalink
Fix pyenv
Browse files Browse the repository at this point in the history
  • Loading branch information
auxten committed Jan 8, 2024
1 parent a99fcbc commit f1a3e72
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build_arm_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-20.04 ]
os: [ ubuntu-22.04 ]
env:
RUNNER_OS: ${{ matrix.os }}
PYTHON_VERSIONS: "3.8 3.9 3.10 3.11 3.12"
Expand All @@ -34,7 +34,7 @@ jobs:
run: |
cp -a /builder_cache/contrib ./
- name: remove old clang and link clang-17 to clang
if: matrix.os == 'ubuntu-20.04'
if: matrix.os == 'ubuntu-22.04'
run: |
sudo rm -f /usr/bin/clang || true
sudo ln -s /usr/bin/clang-17 /usr/bin/clang
Expand All @@ -60,6 +60,9 @@ jobs:
df -h
- name: Audit wheels
run: |
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
pyenv local "${{ matrix.python-version }}"
python3 -m pip install auditwheel
auditwheel -v repair -w dist/ --plat manylinux_2_17_aarch64 dist/*.whl
Expand Down Expand Up @@ -91,6 +94,9 @@ jobs:
- name: Upload pypi
if: ${{ startsWith(github.ref, 'refs/tags/v') || startsWIth(github.event.inputs.TAG_NAME, 'v') }}
run: |
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
pyenv local "${{ matrix.python-version }}"
python3 -m pip install twine
python3 -m twine upload ./dist/*.whl
Expand Down

0 comments on commit f1a3e72

Please sign in to comment.