build wheel #4
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
name: build wheel | |
on: | |
workflow_dispatch: | |
inputs: | |
xapian_version: | |
type: choice | |
description: Xapian version | |
default: "1.4.22" | |
options: | |
- "1.4.22" | |
- "1.4.21" | |
- "1.4.20" | |
- "1.4.19" | |
- "1.4.18" | |
python_version: | |
type: choice | |
description: Python version | |
default: "3.10" | |
options: | |
- "3.11" | |
- "3.10" | |
- "3.9" | |
- "3.8" | |
- "3.7" | |
jobs: | |
build_wheel: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
with: | |
platforms: arm64 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
with: | |
platforms: linux/arm64 | |
- name: Build wheel | |
run: | | |
docker run -e XAPIAN_VERSION=${{inputs.xapian_version}} -e PYVER=${{inputs.python_version}} -v `pwd`/scripts:/scripts/ -v `pwd`/wheelhouse:/app/wheelhouse roifgroup/many-linux-with-xapian-bindings:${{inputs.xapian_version}} /scripts/build_wheel.sh | |
ls -la `pwd`/wheelhouse | |
- name: Zip artifact for deployment | |
run: zip release.zip ./wheelhouse/*.whl -r | |
- name: Archive wheel | |
uses: actions/upload-artifact@v3 | |
with: | |
name: xapianpy | |
path: release.zip | |