Skip to content

Commit 1c0874e

Browse files
committed
Add github workflows
1 parent 8db74be commit 1c0874e

3 files changed

Lines changed: 44 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
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

alpine/Dockerfile

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,18 @@
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
1616
RUN \
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

2827
CMD ["/bin/bash"]

justfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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\nlatest gevent wheels for x86" > build/notes.md

0 commit comments

Comments
 (0)