You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

65 lines
1.7 KiB

  1. name: build-wheels
  2. on:
  3. workflow-dispatch:
  4. branches:
  5. - master
  6. - extended
  7. jobs:
  8. Manylinux-Wheels:
  9. runs-on: ubuntu-latest
  10. container: quay.io/pypa/manylinux2014_x86_64
  11. steps:
  12. - uses: actions/checkout@v2
  13. - name: Print System Information
  14. run: |
  15. echo "uname -a: $( uname -a )"
  16. cat /etc/issue
  17. echo "Shell: $SHELL"
  18. echo "Mount points:"; mount
  19. env
  20. - name: Chose Python version
  21. run: |
  22. ln -s /opt/python/cp39-cp39/bin/python3 /usr/local/bin/python3
  23. export PATH="/opt/python/cp39-cp39/bin:$PATH"
  24. - name: Install dependencies
  25. run: |
  26. yum install -y libxml2-devel libzstd-devl liblz4-devel liblzma-devel libbzip2-devel
  27. yum install -y libacl-devel librichacl-devel openssl-devel
  28. yum install -y librichacl-devel swig strace
  29. - name: Install python tools
  30. run: |
  31. python3 -m pip instal pytest auditwheel
  32. - name: Build libarchive C sources
  33. run: |
  34. git clone git clone https://github.com/libarchive/libarchive.git libarchive-src
  35. cd libarchive-src; git checkout 3-5
  36. mkdir build; cd build
  37. cmake ../
  38. make -j$(nproc); make install
  39. cd ../..
  40. - name: Compile pyhton modules
  41. run: |
  42. rm -rf build wheelhouse
  43. touch libarchive/_libarchive.i
  44. export LD_LIBRARY_PATH=/usr/local/lib64/:/usr/local/lib:$LD_LIBRARY_PATH
  45. export LIBARCHIVE_PREFIX=/usr/local
  46. python3 setup.py install
  47. - name: Build wheels
  48. run: |
  49. pip wheel --wheel-dir dist/ .
  50. auditwheel repair dist/*.whl
  51. python3 -m pip install --force-reinstall wheelhouse/*,whl