-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from PaTara43/main
Added aarch64 and musllinux support
- Loading branch information
Showing
3 changed files
with
175 additions
and
3 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 |
---|---|---|
|
@@ -253,3 +253,175 @@ jobs: | |
with: | ||
name: ${{ env.WHEELNAME }} | ||
path: rbcl-wheelhouse\ | ||
|
||
manylinux2014_aarch64: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python: | ||
- { version: '3.8', abi: 'cp38' } | ||
- { version: '3.9', abi: 'cp39' } | ||
- { version: '3.10', abi: 'cp310' } | ||
- { version: '3.11', abi: 'cp311' } | ||
- { version: '3.12', abi: 'cp312' } | ||
|
||
name: Python ${{ matrix.python.version }} with ABI ${{ matrix.python.abi }} for manylinux2014_aarch64 | ||
env: | ||
CIBW_BUILD_VERBOSITY: 1 | ||
CIBW_ARCHS_LINUX: "aarch64" | ||
CIBW_BUILD: "${{ matrix.python.abi }}-manylinux_aarch64" | ||
CIBW_PROJECT_REQUIRES_PYTHON: ">=${{ matrix.python.version }}" | ||
CIBW_ENVIRONMENT: LIBSODIUM_MAKE_ARGS="-j$(nproc)" | ||
CIBW_BEFORE_ALL: > | ||
pip install .[build] -v | ||
CIBW_REPAIR_WHEEL_COMMAND: "" | ||
CIBW_TEST_EXTRAS: "lint,test,docs" | ||
CIBW_BEFORE_TEST: > | ||
cd {project} && | ||
cp build/lib*/rbcl/_sodium.py src/rbcl/_sodium.py && | ||
pip3 install pystache~=0.6 setuptools && | ||
yum install wget -y && | ||
wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.18.tar.gz && | ||
mv libsodium-1.0.18.tar.gz src/rbcl/libsodium.tar.gz | ||
CIBW_TEST_COMMAND: > | ||
cd {project} && | ||
python -m pylint rbcl src/rbcl/_sodium.tmpl src/rbcl/_sodium_build.py --disable=duplicate-code && | ||
python src/rbcl/rbcl.py -v && | ||
python -m pytest && | ||
cd docs && | ||
sphinx-apidoc -f -E --templatedir=_templates -o _source .. ../src/rbcl/_sodium_build.py ** && | ||
make html | ||
CIBW_DEBUG_TRACEBACK: True | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
with: | ||
platforms: arm64 | ||
|
||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
with: | ||
output-dir: dist | ||
|
||
- name: Upload wheels | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: rbcl-${{ github.ref_name }}-${{ matrix.python.abi }}-manylinux2014_aarch64 | ||
path: dist/*.whl | ||
|
||
|
||
musllinux_1_2_aarch64: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python: | ||
- { version: '3.8', abi: 'cp38' } | ||
- { version: '3.9', abi: 'cp39' } | ||
- { version: '3.10', abi: 'cp310' } | ||
- { version: '3.11', abi: 'cp311' } | ||
- { version: '3.12', abi: 'cp312' } | ||
|
||
name: Python ${{ matrix.python.version }} with ABI ${{ matrix.python.abi }} for musllinux_1_2_aarch64 | ||
env: | ||
CIBW_BUILD_VERBOSITY: 1 | ||
CIBW_ARCHS_LINUX: "aarch64" | ||
CIBW_BUILD: "${{ matrix.python.abi }}-musllinux_aarch64" | ||
CIBW_PROJECT_REQUIRES_PYTHON: ">=${{ matrix.python.version }}" | ||
CIBW_ENVIRONMENT: LIBSODIUM_MAKE_ARGS="-j$(nproc)" | ||
CIBW_BEFORE_ALL: > | ||
pip install .[build] -v | ||
CIBW_REPAIR_WHEEL_COMMAND: "" | ||
CIBW_TEST_EXTRAS: "lint,test,docs" | ||
CIBW_BEFORE_TEST: > | ||
cd {project} && | ||
cp build/lib*/rbcl/_sodium.py src/rbcl/_sodium.py && | ||
pip3 install pystache~=0.6 setuptools && | ||
apk add wget && | ||
wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.18.tar.gz && | ||
mv libsodium-1.0.18.tar.gz src/rbcl/libsodium.tar.gz | ||
CIBW_TEST_COMMAND: > | ||
cd {project} && | ||
python -m pylint rbcl src/rbcl/_sodium.tmpl src/rbcl/_sodium_build.py --disable=duplicate-code && | ||
python src/rbcl/rbcl.py -v && | ||
python -m pytest && | ||
cd docs && | ||
sphinx-apidoc -f -E --templatedir=_templates -o _source .. ../src/rbcl/_sodium_build.py ** && | ||
make html | ||
CIBW_DEBUG_TRACEBACK: True | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
with: | ||
platforms: arm64 | ||
|
||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
with: | ||
output-dir: dist | ||
|
||
- name: Upload wheels | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: rbcl-${{ github.ref_name }}-${{ matrix.python.abi }}-musllinux_1_2_aarch64 | ||
path: dist/*.whl | ||
|
||
|
||
|
||
musllinux_1_2_x86_64: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python: | ||
- { version: '3.8', abi: 'cp38' } | ||
- { version: '3.9', abi: 'cp39' } | ||
- { version: '3.10', abi: 'cp310' } | ||
- { version: '3.11', abi: 'cp311' } | ||
- { version: '3.12', abi: 'cp312' } | ||
|
||
name: Python ${{ matrix.python.version }} with ABI ${{ matrix.python.abi }} for musllinux_1_2_x86_64 | ||
env: | ||
CIBW_BUILD_VERBOSITY: 1 | ||
CIBW_ARCHS_LINUX: "x86_64" | ||
CIBW_BUILD: "${{ matrix.python.abi }}-musllinux_x86_64" | ||
CIBW_PROJECT_REQUIRES_PYTHON: ">=${{ matrix.python.version }}" | ||
CIBW_ENVIRONMENT: LIBSODIUM_MAKE_ARGS="-j$(nproc)" | ||
CIBW_BEFORE_ALL: > | ||
pip install .[build] -v | ||
CIBW_REPAIR_WHEEL_COMMAND: "" | ||
CIBW_TEST_EXTRAS: "lint,test,docs" | ||
CIBW_BEFORE_TEST: > | ||
cd {project} && | ||
cp build/lib*/rbcl/_sodium.py src/rbcl/_sodium.py && | ||
pip3 install pystache~=0.6 setuptools && | ||
apk add wget && | ||
wget https://download.libsodium.org/libsodium/releases/libsodium-1.0.18.tar.gz && | ||
mv libsodium-1.0.18.tar.gz src/rbcl/libsodium.tar.gz | ||
CIBW_TEST_COMMAND: > | ||
cd {project} && | ||
python -m pylint rbcl src/rbcl/_sodium.tmpl src/rbcl/_sodium_build.py --disable=duplicate-code && | ||
python src/rbcl/rbcl.py -v && | ||
python -m pytest && | ||
cd docs && | ||
sphinx-apidoc -f -E --templatedir=_templates -o _source .. ../src/rbcl/_sodium_build.py ** && | ||
make html | ||
CIBW_DEBUG_TRACEBACK: True | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
with: | ||
output-dir: dist | ||
|
||
- name: Upload wheels | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: rbcl-${{ github.ref_name }}-${{ matrix.python.abi }}-musllinux_1_2_x86_64 | ||
path: dist/*.whl |
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