Skip to content

Commit bcfcb8e

Browse files
Merge pull request #9 from jussmi/manylinux-linux-wheels-jjs
Adding manylinux builds
2 parents a1a0f50 + 0f3f6c9 commit bcfcb8e

2 files changed

Lines changed: 27 additions & 6 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,17 @@ name: pdqhash-python CI/CD
22

33
on: workflow_dispatch
44

5-
# We don't currently build for Linux, because
6-
# we need to sort out manylinux. Maybe another day!
75
jobs:
86
build:
9-
name: Build Package
7+
name: Build Windows and MacOS Package
108
strategy:
119
matrix:
12-
python: ['3.7', '3.8', '3.9', '3.10']
10+
python: ['3.8', '3.9', '3.10', '3.11']
1311
os: [windows-latest, macos-latest]
1412
runs-on: ${{ matrix.os }}
1513
steps:
1614
- name: Checkout Code
17-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1816
with:
1917
submodules: true
2018
fetch-depth: 0
@@ -37,4 +35,22 @@ jobs:
3735
- uses: actions/upload-artifact@v3
3836
with:
3937
name: wheels
40-
path: dist/*
38+
path: dist/*
39+
build-linux:
40+
name: Build Linux Package
41+
strategy:
42+
matrix:
43+
python: ['3.8', '3.9', '3.10', '3.11']
44+
runs-on: ubuntu-latest
45+
steps:
46+
- name: Checkout Code
47+
uses: actions/checkout@v4
48+
with:
49+
submodules: true
50+
fetch-depth: 0
51+
- name: Build Manylinux Wheels
52+
run: docker run --rm -v ${{ github.workspace }}:/io --workdir /io quay.io/pypa/manylinux_2_28_x86_64 make PYTHON_VERSION=${{ matrix.python }} manylinux-wheel
53+
- uses: actions/upload-artifact@v3
54+
with:
55+
name: linux-wheels
56+
path: dist/

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,8 @@ test:
1313
package:
1414
rm -rf dist
1515
$(PYTHON) setup.py sdist bdist_wheel
16+
manylinux-wheel: PYBIN = "/opt/python/cp$(subst .,,$(PYTHON_VERSION))-cp$(subst .,,$(PYTHON_VERSION))/bin"
17+
manylinux-wheel:
18+
rm -rf dist
19+
$(PYBIN)/pip install -r requirements.txt
20+
$(PYBIN)/python setup.py sdist bdist_wheel

0 commit comments

Comments
 (0)