From ac2787937bada257699f828e24cc364ed8a6b958 Mon Sep 17 00:00:00 2001 From: Stu Hood Date: Fri, 19 May 2023 13:00:24 -0700 Subject: [PATCH] Do not build wheels on push, since that is now accomplished by the release job. --- .github/workflows/test.yaml | 16 ++++++++-------- build-support/bin/generate_github_workflows.py | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index d19ba87f0e8..ac4ade3ac1b 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -327,8 +327,8 @@ jobs: MODE: debug PANTS_REMOTE_CACHE_READ: 'false' PANTS_REMOTE_CACHE_WRITE: 'false' - if: ((github.repository_owner == 'pantsbuild') && (github.event_name == 'push' || needs.classify_changes.outputs.release - == 'true')) && (needs.classify_changes.outputs.docs_only != 'true') + if: ((github.repository_owner == 'pantsbuild') && (needs.classify_changes.outputs.release == 'true')) && (needs.classify_changes.outputs.docs_only + != 'true') name: Build wheels (Linux-ARM64) needs: - classify_changes @@ -388,8 +388,8 @@ jobs: MODE: debug PANTS_REMOTE_CACHE_READ: 'false' PANTS_REMOTE_CACHE_WRITE: 'false' - if: ((github.repository_owner == 'pantsbuild') && (github.event_name == 'push' || needs.classify_changes.outputs.release - == 'true')) && (needs.classify_changes.outputs.docs_only != 'true') + if: ((github.repository_owner == 'pantsbuild') && (needs.classify_changes.outputs.release == 'true')) && (needs.classify_changes.outputs.docs_only + != 'true') name: Build wheels (Linux-x86_64) needs: - classify_changes @@ -448,8 +448,8 @@ jobs: MODE: debug PANTS_REMOTE_CACHE_READ: 'false' PANTS_REMOTE_CACHE_WRITE: 'false' - if: ((github.repository_owner == 'pantsbuild') && (github.event_name == 'push' || needs.classify_changes.outputs.release - == 'true')) && (needs.classify_changes.outputs.docs_only != 'true') + if: ((github.repository_owner == 'pantsbuild') && (needs.classify_changes.outputs.release == 'true')) && (needs.classify_changes.outputs.docs_only + != 'true') name: Build wheels (macOS10-15-x86_64) needs: - classify_changes @@ -511,8 +511,8 @@ jobs: MODE: debug PANTS_REMOTE_CACHE_READ: 'false' PANTS_REMOTE_CACHE_WRITE: 'false' - if: ((github.repository_owner == 'pantsbuild') && (github.event_name == 'push' || needs.classify_changes.outputs.release - == 'true')) && (needs.classify_changes.outputs.docs_only != 'true') + if: ((github.repository_owner == 'pantsbuild') && (needs.classify_changes.outputs.release == 'true')) && (needs.classify_changes.outputs.docs_only + != 'true') name: Build wheels (macOS11-ARM64) needs: - classify_changes diff --git a/build-support/bin/generate_github_workflows.py b/build-support/bin/generate_github_workflows.py index d97bd331b27..a74497cf9e9 100644 --- a/build-support/bin/generate_github_workflows.py +++ b/build-support/bin/generate_github_workflows.py @@ -85,7 +85,7 @@ def hashFiles(path: str) -> str: ALL_PYTHON_VERSIONS = [PYTHON37_VERSION, PYTHON38_VERSION, PYTHON39_VERSION] DONT_SKIP_RUST = "needs.classify_changes.outputs.rust == 'true'" -DONT_SKIP_WHEELS = "github.event_name == 'push' || needs.classify_changes.outputs.release == 'true'" +DONT_SKIP_WHEELS = "needs.classify_changes.outputs.release == 'true'" IS_PANTS_OWNER = "github.repository_owner == 'pantsbuild'" # NB: This overrides `pants.ci.toml`.