From 64d8d7eb7c8631ad30a815643c3e6b4073a5c7aa Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Fri, 3 Dec 2021 14:31:16 -0500 Subject: [PATCH] Build on main, tags, and PRs (#293) As is this builds on any push and also any PR. This results in double workflows on PRs. --- .github/workflows/build-aarch64.yml | 10 +++++++++- .github/workflows/build-m1-wheel.yml | 10 +++++++++- .github/workflows/build-test.yaml | 10 +++++++++- .github/workflows/build-wheels.yml | 10 +++++++++- 4 files changed, 36 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-aarch64.yml b/.github/workflows/build-aarch64.yml index 91f3bd32b..c309f1bab 100644 --- a/.github/workflows/build-aarch64.yml +++ b/.github/workflows/build-aarch64.yml @@ -1,6 +1,14 @@ name: Build ARM64 wheel -on: [push, pull_request] +on: + push: + branches: + - main + tags: + - '**' + pull_request: + branches: + - '**' jobs: build_wheels: diff --git a/.github/workflows/build-m1-wheel.yml b/.github/workflows/build-m1-wheel.yml index 34acf2131..b178b71cf 100644 --- a/.github/workflows/build-m1-wheel.yml +++ b/.github/workflows/build-m1-wheel.yml @@ -1,6 +1,14 @@ name: Build M1 Wheels -on: [push, pull_request] +on: + push: + branches: + - main + tags: + - '**' + pull_request: + branches: + - '**' jobs: build_wheels: diff --git a/.github/workflows/build-test.yaml b/.github/workflows/build-test.yaml index 86f5e0ce8..fce51504c 100644 --- a/.github/workflows/build-test.yaml +++ b/.github/workflows/build-test.yaml @@ -1,6 +1,14 @@ name: Build and Test C++, Javascript, and Python -on: [push, pull_request] +on: + push: + branches: + - main + tags: + - '**' + pull_request: + branches: + - '**' jobs: build_wheels: diff --git a/.github/workflows/build-wheels.yml b/.github/workflows/build-wheels.yml index e433605f4..9512680ca 100644 --- a/.github/workflows/build-wheels.yml +++ b/.github/workflows/build-wheels.yml @@ -1,6 +1,14 @@ name: Build wheels -on: [push, pull_request] +on: + push: + branches: + - main + tags: + - '**' + pull_request: + branches: + - '**' jobs: build_wheels: