-
Notifications
You must be signed in to change notification settings - Fork 119
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
zqfang
committed
Aug 28, 2023
1 parent
bc99967
commit 6119159
Showing
2 changed files
with
38 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 |
---|---|---|
|
@@ -30,19 +30,19 @@ jobs: | |
runs-on: ubuntu-latest | ||
needs: ["build_wheels","build-win32-wheels"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
name: Install Python | ||
with: | ||
python-version: '3.7' | ||
python-version: '3.8' | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
- name: Install deps | ||
run: pip install -U twine setuptools-rust | ||
- name: Build sdist | ||
run: python setup.py sdist | ||
- uses: actions/upload-artifact@v2 | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./dist/* | ||
- name: Upload to PyPI | ||
|
@@ -58,11 +58,11 @@ jobs: | |
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
name: Install Python | ||
with: | ||
python-version: '3.7' | ||
python-version: '3.8' | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
|
@@ -82,7 +82,7 @@ jobs: | |
CIBW_BEFORE_BUILD: pip install -U setuptools-rust | ||
# CIBW_TEST_REQUIRES: numpy scipy pandas requests | ||
# CIBW_TEST_COMMAND: python -m unittest discover {project}/tests/ | ||
- uses: actions/upload-artifact@v2 | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
- name: Upload to PyPI | ||
|
@@ -98,16 +98,16 @@ jobs: | |
matrix: | ||
os: [ubuntu-latest] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
name: Install Python | ||
with: | ||
python-version: '3.7' | ||
python-version: '3.8' | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v1 | ||
uses: docker/setup-qemu-action@v2 | ||
with: | ||
platforms: all | ||
- name: Install cibuildwheel | ||
|
@@ -127,7 +127,7 @@ jobs: | |
# CIBW_TEST_REQUIRES: numpy scipy pandas requests | ||
# CIBW_TEST_COMMAND: python -m unittest discover {project}/tests/ | ||
CIBW_ARCHS_LINUX: aarch64 | ||
- uses: actions/upload-artifact@v2 | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
- name: Upload to PyPI | ||
|
@@ -138,20 +138,20 @@ jobs: | |
|
||
build-mac-arm-wheels: | ||
name: Build wheels on macos for arm and universal2 | ||
runs-on: macos-10.15 | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- name: Build wheels | ||
uses: joerick/[email protected] | ||
env: | ||
CIBW_BEFORE_ALL: rustup target add aarch64-apple-darwin | ||
CIBW_ARCHS_MACOS: arm64 universal2 | ||
CIBW_BEFORE_BUILD: pip install -U setuptools-rust | ||
CIBW_ENVIRONMENT: CARGO_BUILD_TARGET="aarch64-apple-darwin" PYO3_CROSS_LIB_DIR="/Library/Frameworks/Python.framework/Versions/$(python -c 'import sys; print(str(sys.version_info[0])+"."+str(sys.version_info[1]))')/lib/python$(python -c 'import sys; print(str(sys.version_info[0])+"."+str(sys.version_info[1]))')" | ||
- uses: actions/upload-artifact@v2 | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
- uses: actions/setup-python@v2 | ||
- uses: actions/setup-python@v4 | ||
name: Install Python | ||
with: | ||
python-version: '3.8' | ||
|
@@ -168,11 +168,11 @@ jobs: | |
name: Build wheels on win32 | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
name: Install Python | ||
with: | ||
python-version: '3.7' | ||
python-version: '3.8' | ||
architecture: 'x86' | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
|
@@ -193,7 +193,7 @@ jobs: | |
CIBW_BEFORE_BUILD: pip install -U setuptools-rust | ||
# CIBW_TEST_REQUIRES: numpy scipy pandas requests | ||
# CIBW_TEST_COMMAND: python -m unittest discover {project}/tests/ | ||
- uses: actions/upload-artifact@v2 | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./wheelhouse/*.whl | ||
- name: Upload to PyPI | ||
|
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