diff options
author | Jens Vagelpohl <jens@plyp.com> | 2022-11-16 12:48:36 +0100 |
---|---|---|
committer | Jens Vagelpohl <jens@plyp.com> | 2022-11-16 12:48:36 +0100 |
commit | 91f84c7d08fee4a6a4a17a9937743824c352c55b (patch) | |
tree | cb12afbea623990e7a5c75a21407e9fcd45244d1 /.github | |
parent | c2f66ea00ba3c8cb390925c900806b112b2aac31 (diff) | |
download | zope-security-91f84c7d08fee4a6a4a17a9937743824c352c55b.tar.gz |
- prepare release 5.6 and package cleanups5.6
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/tests.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9a7f8c9..c733b53 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -190,6 +190,23 @@ jobs: # output (pip install uses a random temporary directory, making this difficult). python setup.py build_ext -i python setup.py bdist_wheel + - name: Build zope.security (macOS universal2, Python 3.8+) + if: > + startsWith(runner.os, 'Mac') + && !(startsWith(matrix.python-version, 'pypy') + || matrix.python-version == '2.7' + || matrix.python-version == '3.5' + || matrix.python-version == '3.6' + || matrix.python-version == '3.7') + env: + MACOSX_DEPLOYMENT_TARGET: 10.9 + _PYTHON_HOST_PLATFORM: macosx-10.9-universal2 + ARCHFLAGS: -arch arm64 -arch x86_64 + run: | + # Next, build the wheel *in place*. This helps ccache, and also lets us cache the configure + # output (pip install uses a random temporary directory, making this difficult). + python setup.py build_ext -i + python setup.py bdist_wheel - name: Build zope.security (all other versions) if: > !startsWith(runner.os, 'Mac') @@ -236,6 +253,20 @@ jobs: # on the GHA runner, which uses x86_64 architecture. name: zope.security-${{ runner.os }}-${{ matrix.python-version }}-arm64.whl path: dist/*arm64.whl + - name: Upload zope.security wheel (macOS universal2) + if: > + startsWith(runner.os, 'Mac') + && !(startsWith(matrix.python-version, 'pypy') + || matrix.python-version == '2.7' + || matrix.python-version == '3.5' + || matrix.python-version == '3.6' + || matrix.python-version == '3.7') + uses: actions/upload-artifact@v3 + with: + # The universal2 wheel is uploaded with a different name just so it + # can be manually downloaded when desired. + name: zope.security-${{ runner.os }}-${{ matrix.python-version }}-universal2.whl + path: dist/*universal2.whl - name: Upload zope.security wheel (all other platforms) if: > !startsWith(runner.os, 'Mac') |