From 5453c154c1334084bea1ecabbf9c48a5106411b2 Mon Sep 17 00:00:00 2001 From: Vadim Lebedev Date: Mon, 1 Aug 2022 13:59:35 +0200 Subject: [PATCH] Adding githib workflow --- .github/workflows/build-wheels.yaml | 65 +++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 .github/workflows/build-wheels.yaml diff --git a/.github/workflows/build-wheels.yaml b/.github/workflows/build-wheels.yaml new file mode 100644 index 0000000..9e79cd0 --- /dev/null +++ b/.github/workflows/build-wheels.yaml @@ -0,0 +1,65 @@ +name: build-wheels + +on: + workflow-dispatch: + branches: + - master + - extended + +jobs: + Manylinux-Wheels: + runs-on: ubuntu-latest + container: quay.io/pypa/manylinux2014_x86_64 + steps: + - uses: actions/checkout@v2 + + - name: Print System Information + run: | + echo "uname -a: $( uname -a )" + cat /etc/issue + echo "Shell: $SHELL" + echo "Mount points:"; mount + env + + - name: Chose Python version + run: | + ln -s /opt/python/cp39-cp39/bin/python3 /usr/local/bin/python3 + export PATH="/opt/python/cp39-cp39/bin:$PATH" + + - name: Install dependencies + run: | + yum install -y libxml2-devel libzstd-devl liblz4-devel liblzma-devel libbzip2-devel + yum install -y libacl-devel librichacl-devel openssl-devel + yum install -y librichacl-devel swig strace + + - name: Install python tools + run: | + python3 -m pip instal pytest auditwheel + + + - name: Build libarchive C sources + run: | + git clone git clone https://github.com/libarchive/libarchive.git libarchive-src + cd libarchive-src; git checkout 3-5 + mkdir build; cd build + cmake ../ + make -j$(nproc); make install + cd ../.. + + + - name: Compile pyhton modules + run: | + rm -rf build wheelhouse + touch libarchive/_libarchive.i + make clean + export LD_LIBRARY_PATH=/usr/local/lib64/:/usr/local/lib:$LD_LIBRARY_PATH + make install + + + - name: Build wheels + run: | + make wheel + auditwheel repair dist/*.whl + python3 -m pip install --force-reinstall wheelhouse/*,whl + + \ No newline at end of file