summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorMarius Gedminas <marius@gedmin.as>2022-09-09 18:04:58 +0300
committerMarius Gedminas <marius@gedmin.as>2022-09-09 18:04:58 +0300
commit22a761cc9e6fcfa840582d55a15abda31a9dd2e1 (patch)
tree09bddc0c262b0754bafdff347ec7bf9c532c34d1 /.github/workflows
parenta07c82b7813de1e000863e1d01058e417bc4b33d (diff)
downloadzope-interface-22a761cc9e6fcfa840582d55a15abda31a9dd2e1.tar.gz
Update to the latest c-code template
Add a regression test for CFLAGS not having -Ofast, which is known to break things. See https://github.com/zopefoundation/meta/pull/155 for reference.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/tests.yml15
1 files changed, 8 insertions, 7 deletions
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 3c3f9a0..966cf9b 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -61,8 +61,8 @@ env:
PIP_NO_PYTHON_VERSION_WARNING: 1
PIP_NO_WARN_SCRIPT_LOCATION: 1
- CFLAGS: -Ofast -pipe
- CXXFLAGS: -Ofast -pipe
+ CFLAGS: -O3 -pipe
+ CXXFLAGS: -O3 -pipe
# Uploading built wheels for releases.
# TWINE_PASSWORD is encrypted and stored directly in the
# github repo settings.
@@ -91,6 +91,7 @@ jobs:
# Sigh. Note that the matrix must be kept in sync
# with `test`, and `docs` must use a subset.
runs-on: ${{ matrix.os }}
+ if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
strategy:
fail-fast: false
matrix:
@@ -104,7 +105,7 @@ jobs:
- "3.8"
- "3.9"
- "3.10"
- - "3.11.0-beta.4"
+ - "3.11.0-rc.1"
os: [ubuntu-20.04, macos-latest]
exclude:
- os: macos-latest
@@ -153,8 +154,8 @@ jobs:
pip install -U pip
pip install -U setuptools wheel twine cffi
- - name: Build zope.interface (3.11.0-beta.4)
- if: ${{ startsWith(matrix.python-version, '3.11.0-beta.4') }}
+ - name: Build zope.interface (3.11.0-rc.1)
+ if: ${{ startsWith(matrix.python-version, '3.11.0-rc.1') }}
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).
@@ -209,7 +210,7 @@ jobs:
&& startsWith(github.ref, 'refs/tags')
&& startsWith(runner.os, 'Mac')
&& !startsWith(matrix.python-version, 'pypy')
- && !startsWith(matrix.python-version, '3.11.0-beta.4')
+ && !startsWith(matrix.python-version, '3.11.0-rc.1')
env:
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
run: |
@@ -231,7 +232,7 @@ jobs:
- "3.8"
- "3.9"
- "3.10"
- - "3.11.0-beta.4"
+ - "3.11.0-rc.1"
os: [ubuntu-20.04, macos-latest]
exclude:
- os: macos-latest