mirror of
https://github.com/nqrduck/LimeDriverBindings.git
synced 2024-09-28 08:30:35 +00:00
Updated automatic deployment.
This commit is contained in:
parent
620b5809ee
commit
3d54fc30af
3 changed files with 32 additions and 7 deletions
12
.github/workflows/python-publish.yml
vendored
12
.github/workflows/python-publish.yml
vendored
|
@ -43,16 +43,16 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
python -m venv venv
|
python -m venv venv
|
||||||
. ./venv/bin/activate
|
. ./venv/bin/activate
|
||||||
pip install --upgrade pip h5py setuptools wheel build
|
pip install -U twine cibuildwheel
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Build wheels
|
||||||
run: |
|
run: python -m cibuildwheel --output-dir dist
|
||||||
sudo apt-get install -y libhdf5-dev limesuite liblimesuite-dev automake gcc pkg-config build-essential python-is-python3
|
# to supply options, put them in 'env', like:
|
||||||
|
env:
|
||||||
|
CIBW_BEFORE_BUILD: ./build_wheel.sh
|
||||||
|
|
||||||
- name: Publish to PyPI
|
- name: Publish to PyPI
|
||||||
run: |
|
run: |
|
||||||
pip install -U twine cibuildwheel
|
|
||||||
python -m cibuildwheel .
|
|
||||||
python -m twine upload --repository pypi --username __token__ --password ${{ secrets.PYPI }} dist/*
|
python -m twine upload --repository pypi --username __token__ --password ${{ secrets.PYPI }} dist/*
|
||||||
env:
|
env:
|
||||||
PYPI: ${{ secrets.PYPI }}
|
PYPI: ${{ secrets.PYPI }}
|
||||||
|
|
16
build_wheel.sh
Executable file
16
build_wheel.sh
Executable file
|
@ -0,0 +1,16 @@
|
||||||
|
#!/bin/bash
|
||||||
|
set -ex # will exit on any error and print all commands
|
||||||
|
|
||||||
|
yum install -y epel-release
|
||||||
|
yum update -y # Update the system
|
||||||
|
yum groupinstall -y "Development Tools"
|
||||||
|
yum install -y cmake3 git libusb-devel hdf5-devel
|
||||||
|
|
||||||
|
# Clone and build LimeSuite
|
||||||
|
rm -rf LimeSuite
|
||||||
|
git clone https://github.com/myriadrf/LimeSuite.git
|
||||||
|
cd LimeSuite/build || exit
|
||||||
|
cmake3 ../ -DENABLE_GUI=OFF
|
||||||
|
make -j$(nproc)
|
||||||
|
make install
|
||||||
|
ldconfig
|
|
@ -52,4 +52,13 @@ convention = "google"
|
||||||
"Source Code" = "https://github.com/nqrduck/limedriverbindings"
|
"Source Code" = "https://github.com/nqrduck/limedriverbindings"
|
||||||
|
|
||||||
[tool.hatch.build.targets.wheel]
|
[tool.hatch.build.targets.wheel]
|
||||||
packages = ["src/limedriver"]
|
packages = ["src/limedriver"]
|
||||||
|
|
||||||
|
[tool.cibuildwheel]
|
||||||
|
manylinux-x86_64-image = "quay.io/pypa/manylinux_2_28_x86_64"
|
||||||
|
manylinux-aarch64-image = "quay.io/pypa/manylinux_2_28_aarch64"
|
||||||
|
manylinux-ppc64le-image = "quay.io/pypa/manylinux_2_28_ppc64le"
|
||||||
|
manylinux-s390x-image = "quay.io/pypa/manylinux_2_28_s390x"
|
||||||
|
|
||||||
|
[tool.cibuildwheel.linux]
|
||||||
|
archs = ["aarch64", "x86_64", "ppc64le", "s390x"]
|
||||||
|
|
Loading…
Reference in a new issue