-
Notifications
You must be signed in to change notification settings - Fork 78
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
Showing
3 changed files
with
79 additions
and
8 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 |
---|---|---|
@@ -1,9 +1,15 @@ | ||
name: build-wheels | ||
|
||
on: [workflow_dispatch] | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
release: | ||
description: Do you want to release to pipy | ||
required: true | ||
default: "false" | ||
|
||
jobs: | ||
build_wheels: | ||
build_wheels_pypitest: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
|
@@ -46,24 +52,89 @@ jobs: | |
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: pypi_test | ||
path: ./wheelhouse/*.whl | ||
|
||
publish-pypitest: | ||
needs: build_wheels | ||
needs: build_wheels_pypitest | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.inputs.release }} == "true" | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: pypi_test | ||
path: ./wheelhouse/ | ||
|
||
- name: show all artifact | ||
run: | | ||
ls -al ./wheelhouse/artifact/ | ||
ls -R ./wheelhouse/ | ||
- name: Publish package to pypitest | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.EELIUTEST }} | ||
packages_dir: ./wheelhouse/artifact | ||
repository_url: https://test.pypi.org/legacy/ | ||
packages_dir: ./wheelhouse/ | ||
repository_url: https://test.pypi.org/legacy/ | ||
|
||
build_wheels: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04, macos-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
# Used to host cibuildwheel | ||
- uses: actions/setup-python@v3 | ||
|
||
# - name: Set up QEMU | ||
# if: runner.os == 'Linux' | ||
# uses: docker/setup-qemu-action@v3 | ||
# with: | ||
# platforms: all | ||
|
||
- name: Install cibuildwheel | ||
run: python -m pip install cibuildwheel==2.16.0 | ||
|
||
# - name: Build wheels | ||
# uses: pypa/[email protected] | ||
# env: | ||
# # configure cibuildwheel to build native archs ('auto'), and some | ||
# # emulated ones | ||
# CIBW_ARCHS_LINUX: auto aarch64 ppc64le s390x | ||
|
||
- name: Build wheels | ||
run: python -m cibuildwheel --output-dir wheelhouse | ||
# to supply options, put them in 'env', like: | ||
env: | ||
CIBW_ARCHS_MACOS: "x86_64 arm64" | ||
# CIBW_ARCHS_LINUX: "auto aarch64" | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: pypi | ||
path: ./wheelhouse/*.whl | ||
|
||
publish: | ||
needs: build_wheels | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.inputs.release }} == "true" | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: pypi | ||
path: ./wheelhouse/ | ||
|
||
- name: show all artifact | ||
run: | | ||
ls -R ./wheelhouse/ | ||
- name: Publish package to pypitest | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PINPOINTPY }} | ||
packages_dir: ./wheelhouse/ |
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
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 |
---|---|---|
|
@@ -67,7 +67,7 @@ def run(self): | |
|
||
|
||
setup(name='pinpointPy', | ||
version="1.0.16",# don't forget update __version__ in pinpointPy/__init__.py | ||
version="1.0.15",# don't forget update __version__ in pinpointPy/__init__.py | ||
author="cd_pinpoint members", | ||
author_email='[email protected]', | ||
license='Apache License 2.0', | ||
|