Browse Source

Merge branch 'extended' of https://github.com/Vadiml1024/python-libarchive into extended

test_fixup
Vadim Lebedev 2 years ago
parent
commit
000fcf46cf
1 changed files with 8 additions and 9 deletions
  1. +8
    -9
      .github/workflows/build-wheels.yaml

+ 8
- 9
.github/workflows/build-wheels.yaml View File

@@ -34,7 +34,7 @@ jobs:
- name: Install dependencies
run: |
yum install -y epel-release libxml2-devel libzstd-devel xz-devel bzip2-devel
yum install -y libacl-devel openssl-devel
yum install -y libacl-devel lz4-devel e2fsprogs-devel libb2-devel lzo-devel openssl-devel
yum install -y librichacl-devel swig strace

- name: Install python tools
@@ -52,27 +52,26 @@ jobs:
cd ../..


- name: Compile pyhton modules
- name: Prepare build environment
run: |
rm -rf build wheelhouse
touch libarchive/_libarchive.i
export LD_LIBRARY_PATH=/usr/local/lib64/:/usr/local/lib:$LD_LIBRARY_PATH
export LIBARCHIVE_PREFIX=/usr/local
echo LD_LIBRARY_PATH=/usr/local/lib64/:/usr/local/lib:$LD_LIBRARY_PATH >>$GITHUB_ENV
echo LIBARCHIVE_PREFIX=/usr/local >>$GITHUB_ENV

- name: Compile pyhton modules
run: |
python3 setup.py install


- name: Build wheels
run: |
export LD_LIBRARY_PATH=/usr/local/lib64/:/usr/local/lib:$LD_LIBRARY_PATH
export LIBARCHIVE_PREFIX=/usr/local
python3 -m pip wheel --wheel-dir dist/ .
auditwheel repair dist/*.whl
python3 -m pip install --force-reinstall wheelhouse/*.whl

- name: version
run: |
export LD_LIBRARY_PATH=/usr/local/lib64/:/usr/local/lib:$LD_LIBRARY_PATH
export LIBARCHIVE_PREFIX=/usr/local
echo "::set-output name=version::$(cd /tmp; python3 -c 'import libarchive; print(libarchive.version())')"
id: version

@@ -89,7 +88,7 @@ jobs:
draft: false
prerelease: false
release_name: Release ${{ steps.version.outputs.version }}
tag_name: V${{ steps.version.outputs.version }}
tag_name: V${{ steps.version.outputs.version }}-${{ github.ref_name }}-${{ github.run_number }}
env:
GITHUB_TOKEN: ${{ github.token }}



Loading…
Cancel
Save