File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Run build
2+ on : [push, workflow_dispatch]
3+ permissions : {} # Set permissions at the job level
4+
5+ jobs :
6+ build : # job name
7+ if : github.repository == 'mzdaniel/wheel'
8+ runs-on : ubuntu-latest
9+ timeout-minutes : 10
10+ permissions :
11+ id-token : write
12+ contents : write
13+ steps :
14+ - uses : actions/checkout@v5
15+ with :
16+ persist-credentials : false
17+
18+ - name : Install build dependencies
19+ run : pip install rust-just
20+
21+ - name : Run build
22+ run : just build
23+
24+ - name : Publish GitHub Release
25+ env :
26+ VERSION : 0.0.1
27+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28+ run : |
29+ gh release create "$VERSION" -F build/notes.md build/g*.whl
Original file line number Diff line number Diff line change 1010# docker run wheel sh -c "cat /pkg/$GEVENT" > $GEVENT
1111# docker run wheel sh -c "cat /pkg/$GREENLET" > $GREENLET
1212
13- FROM alpine
13+ FROM python:3.12- alpine
1414
1515# Build wheels
1616RUN \
1717 mkdir pkg && \
1818 apk update && \
19- apk add bash curl python alpine-sdk python -dev libffi-dev openssl-dev && \
19+ apk add bash curl python3 alpine-sdk python3 -dev libffi-dev openssl-dev && \
2020 curl https://bootstrap.pypa.io/get-pip.py | python && \
2121 pip install wheel && \
22- pip wheel gevent==1.1b1 && \
23- mv /wheelhouse/* /pkg && \
24- apk del curl alpine-sdk python-dev libffi-dev openssl-dev && \
25- rm -rf /var/cache/apk/* /root/.cache /tmp/* && \
26- find /usr/lib/python2.7 -name '*pyo' -exec rm {} \;
22+ pip wheel gevent==25.8.2 && \
23+ mv /*.whl /pkg && \
24+ apk del curl python3 alpine-sdk python3-dev libffi-dev openssl-dev && \
25+ rm -rf /var/cache/apk/* /root/.cache /tmp/*;
2726
2827CMD ["/bin/bash" ]
Original file line number Diff line number Diff line change 1+ all : build
2+
3+ build :
4+ (cd alpine; docker build -t wheel .)
5+ mkdir -p build
6+ (export GEVENT=gevent-25.8.2 -cp312 -cp312 -musllinux_1_2_x86 _64. whl; cd alpine; docker run wheel sh -c " cat /pkg/$GEVENT" > ../ build/ $GEVENT)
7+ (export GREENLET=greenlet-3.2.4 -cp312 -cp312 -musllinux_1_1_x86 _64. whl; cd alpine; docker run wheel sh -c " cat /pkg/$GREENLET" > ../ build/ $GREENLET)
8+ cp build/ gevent*.whl build/ gevent-0.0.0 .whl
9+ printf " alpine gevent wheels (2025-09-13)\n =================================\n\n latest gevent wheels for x86" > build/ notes.md
You can’t perform that action at this time.
0 commit comments