avoiding duplicate names in artifacts; bumped version to 0.6.7.post3 #182
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build aarch64 | |
on: [push, pull_request] | |
jobs: | |
build_wheels: | |
name: Build aarch64 wheel on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@master | |
with: | |
submodules: 'recursive' | |
- uses: actions/setup-python@v2 | |
name: Install Python | |
with: | |
python-version: '3.9' | |
- uses: docker/setup-qemu-action@v1 | |
name: Set up QEMU | |
- name: Build wheels | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install --upgrade build | |
python -m pip install cibuildwheel | |
python -m cibuildwheel --output-dir wheelhouse | |
env: | |
CIBW_ARCHS_LINUX: aarch64 | |
CIBW_BEFORE_ALL: "rm -rf {package}/osqp_sources/build && yum -y update && yum install -y blas-devel lapack-devel suitesparse-devel" | |
CIBW_ENVIRONMENT_LINUX: CMAKE_GENERATOR="Unix Makefiles" | |
CIBW_BUILD_VERBOSITY: 1 | |
CIBW_TEST_EXTRAS: dev | |
- name: Release to pypi | |
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') | |
env: | |
TWINE_USERNAME: __token__ | |
TWINE_PASSWORD: ${{ secrets.pypi_password }} | |
run: | | |
python -m pip install --upgrade twine | |
twine upload wheelhouse/* | |
- name: Upload artifacts to github | |
uses: actions/upload-artifact@v4 | |
with: | |
name: wheels | |
path: ./wheelhouse |