forked from ERGO-Code/HiGHS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0095d61
commit cb9c3a5
Showing
1 changed file
with
29 additions
and
21 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ name: build-wheels-push | |
# on: push | ||
|
||
on: | ||
workflow_dispatch: | ||
release: | ||
types: | ||
- published | ||
|
@@ -26,8 +27,10 @@ jobs: | |
buildplat: | ||
- [ubuntu-20.04, manylinux_x86_64] | ||
- [ubuntu-20.04, manylinux_i686] | ||
- [ubuntu-20.04, manylinux_aarch64] | ||
- [ubuntu-20.04, musllinux_x86_64] # No OpenBlas, no test | ||
- [ubuntu-20.04, musllinux_i686] | ||
- [ubuntu-20.04, musllinux_aarch64] | ||
- [macos-12, macosx_x86_64] | ||
- [macos-14, macosx_arm64] | ||
- [windows-2019, win_amd64] | ||
|
@@ -36,6 +39,11 @@ jobs: | |
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up QEMU # Required for aarch64 builds | ||
if: matrix.buildplat == [ubuntu-20.04, manylinux_aarch64] || matrix.buildplat == [ubuntu-20.04, musllinux_aarch64] | ||
uses: docker/setup-qemu-action@v3 | ||
with: | ||
platforms: all | ||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
env: | ||
|
@@ -86,29 +94,29 @@ jobs: | |
# with: | ||
# repository-url: https://test.pypi.org/legacy/ | ||
|
||
upload_pypi: | ||
name: >- | ||
Publish highspy to PyPI | ||
runs-on: ubuntu-latest | ||
needs: [build_wheels, build_sdist] | ||
# upload_pypi: | ||
# name: >- | ||
# Publish highspy to PyPI | ||
# runs-on: ubuntu-latest | ||
# needs: [build_wheels, build_sdist] | ||
|
||
# upload to PyPI on every tag starting with 'v' | ||
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') | ||
# # upload to PyPI on every tag starting with 'v' | ||
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') | ||
|
||
environment: | ||
name: pypi | ||
url: https://pypi.org/p/highspy | ||
# environment: | ||
# name: pypi | ||
# url: https://pypi.org/p/highspy | ||
|
||
permissions: | ||
id-token: write # IMPORTANT: mandatory for trusted publishing | ||
# permissions: | ||
# id-token: write # IMPORTANT: mandatory for trusted publishing | ||
|
||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
# unpacks default artifact into dist/ | ||
# if `name: artifact` is omitted, the action will create extra parent dir | ||
name: artifact | ||
path: dist | ||
# steps: | ||
# - uses: actions/download-artifact@v3 | ||
# with: | ||
# # unpacks default artifact into dist/ | ||
# # if `name: artifact` is omitted, the action will create extra parent dir | ||
# name: artifact | ||
# path: dist | ||
|
||
- name: Download all | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
# - name: Download all | ||
# uses: pypa/gh-action-pypi-publish@release/v1 |