Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems authored Dec 7, 2024
1 parent 0e3d2e3 commit 9e6cc23
Showing 1 changed file with 12 additions and 16 deletions.
28 changes: 12 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ jobs:
execute_install_scripts: true
packages: libfuse-dev
version: 1.0
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
version: "25.x"
- name: Checkout the Git repository
uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down Expand Up @@ -60,10 +56,6 @@ jobs:
execute_install_scripts: true
packages: libfuse-dev ccache
version: 1.0
- name: Install Protoc
uses: arduino/setup-protoc@v3
with:
version: "25.x"
- name: Checkout the Git repository
uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down Expand Up @@ -106,7 +98,6 @@ jobs:
fuse-dev
git
patchelf
protoc
- name: Nuitka ccache
uses: actions/cache@v4
with:
Expand Down Expand Up @@ -180,7 +171,6 @@ jobs:
name: Build wheel with python ${{ matrix.python }}
needs: [test]
runs-on: ubuntu-latest
container: quay.io/pypa/manylinux_2_34_x86_64:latest
strategy:
matrix:
python:
Expand All @@ -194,14 +184,20 @@ jobs:
with:
python-version: ${{ matrix.python }}
cache: 'pip'
- name: Install build tool
run: pip install build
- name: Building package
run: make wheel
- name: Make manylinux compatible
run: |
pip install auditwheel
auditwheel repair dist/*.whl
python_version=${{ matrix.python }}
python_version=cp${python_version//.}
script=$(cat <<EOF
cd /src;
export PATH=\$PATH:/opt/python/$python_version-$python_version/bin;
make ${{ env.FLAGS }} wheel;
auditwheel repair dist/*.whl;
EOF
)
docker run -v $(pwd):/src \
quay.io/pypa/manylinux_2_34_x86_64:latest \
/bin/bash -c "$script"
- uses: actions/upload-artifact@v4
with:
name: pip-wheel-${{ matrix.python }}
Expand Down

0 comments on commit 9e6cc23

Please sign in to comment.