-
Notifications
You must be signed in to change notification settings - Fork 12
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
1 changed file
with
47 additions
and
46 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 |
---|---|---|
|
@@ -5,49 +5,50 @@ on: [push, pull_request] | |
jobs: | ||
|
||
build-linux: | ||
regression_matrix: | ||
strategy: | ||
max-parallel: 4 | ||
fail-fast: false | ||
matrix: | ||
python-version: ['3.10', '3.11', '3.12'] | ||
os: [ubuntu-latest] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Install rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
|
||
- name: Set up Python ${{ matrix.python-version }} x64 | ||
if: matrix.os == 'ubuntu-latest' | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
|
||
- name: Install Requirements | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install --upgrade numpy cython wheel numpy setuptools_rust | ||
python -m pip install --upgrade -r $GITHUB_WORKSPACE/requirements.txt | ||
python -m pip install --upgrade -r $GITHUB_WORKSPACE/tests/requirements.txt | ||
- name: Build binary wheel | ||
run: python setup.py bdist_wheel | ||
|
||
- name: Apply auditwheel for manylinux wheel | ||
run: auditwheel repair -w dist dist/* | ||
|
||
- name: Remove linux wheel | ||
run: rm dist/*-linux_x86_64.whl | ||
|
||
- name: Archive dist artifacts | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: dist-linux-${{ matrix.python-version }} | ||
path: dist | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
max-parallel: 4 | ||
fail-fast: false | ||
matrix: | ||
python-version: ['3.10', '3.11', '3.12'] | ||
os: [ubuntu-latest] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Install rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
|
||
- name: Set up Python ${{ matrix.python-version }} x64 | ||
if: matrix.os == 'ubuntu-latest' | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
architecture: x64 | ||
|
||
- name: Install Requirements | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install --upgrade numpy cython wheel numpy setuptools_rust | ||
python -m pip install --upgrade -r $GITHUB_WORKSPACE/requirements.txt | ||
python -m pip install --upgrade -r $GITHUB_WORKSPACE/tests/requirements.txt | ||
- name: Build binary wheel | ||
run: python setup.py bdist_wheel | ||
|
||
- name: Apply auditwheel for manylinux wheel | ||
run: auditwheel repair -w dist dist/* | ||
|
||
- name: Remove linux wheel | ||
run: rm dist/*-linux_x86_64.whl | ||
|
||
- name: Archive dist artifacts | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: dist-linux-${{ matrix.python-version }} | ||
path: dist |