diff options
author | Tim Harder <radhermit@gmail.com> | 2021-03-20 12:02:45 -0600 |
---|---|---|
committer | Tim Harder <radhermit@gmail.com> | 2021-03-20 12:25:42 -0600 |
commit | 777b73cecc6664fa160abc089d3bd88eb95245da (patch) | |
tree | 838686c6c41789cb775f2c5d53c7c818cf286245 /.github | |
parent | tests: ignore bind mount failure for priv limited docker wheel builds (diff) | |
download | snakeoil-777b73cecc6664fa160abc089d3bd88eb95245da.tar.gz snakeoil-777b73cecc6664fa160abc089d3bd88eb95245da.tar.bz2 snakeoil-777b73cecc6664fa160abc089d3bd88eb95245da.zip |
github: use cibuildwheel github action to build wheels
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/release.yml | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 275645f..3eab2fe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: - name: Install dependencies run: | - # install deps required for building sdist/wheel + # install deps required for building sdist/wheels python -m pip install --upgrade pip pip install -r requirements/dist.txt pip install -r requirements/test.txt @@ -30,18 +30,28 @@ jobs: PY_COLORS: 1 run: python setup.py test - - name: Build release files - env: - CIBW_BUILD: "cp38-* cp39-*" + - name: Build sdist run: | # use release version of pyproject.toml cp requirements/pyproject.toml ./pyproject.toml # build sdist + git clean -fxd python setup.py sdist - # use pkgdist script to build wheels via cibuildwheel - git clone https://github.com/pkgcore/pkgdist.git - pkgdist/build-wheels.sh - # output dist file info + + - name: Build wheels + uses: joerick/cibuildwheel@v1.10.0 + env: + CIBW_BUILD: cp38-* cp39-* + CIBW_ARCHS_LINUX: x86_64 i686 + CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014 + CIBW_MANYLINUX_I686_IMAGE: manylinux2014 + CIBW_BEFORE_BUILD: pip install -r {project}/requirements/dist.txt + CIBW_BEFORE_TEST: pip install -r {project}/requirements/test.txt + CIBW_TEST_COMMAND: py.test {project}/tests + + - name: Output dist file info + run: | + cp wheelhouse/* dist/ ls dist/ tar -ztf dist/*.tar.gz | sort sha512sum dist/* |