Skip to content

Commit 63f5b06

Browse files
committed
run only a single build on each platform
1 parent 25c85aa commit 63f5b06

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/conda_build.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,27 @@ jobs:
1818
os: [ubuntu-latest, macos-15-intel, macos-latest]
1919
numpy-version: ["1.26"]
2020
python-version: ["3.9", "3.10", "3.11"]
21+
event_name: ["${{ contains(github.event_name, 'pull_request') }}"]
22+
exclude:
23+
# for PRs just run a single build per platform to save time and resources
24+
- event_name: true
25+
os: ubuntu-latest
26+
python-version: "3.9"
27+
- event_name: true
28+
os: ubuntu-latest
29+
python-version: "3.10"
30+
- event_name: true
31+
os: macos-15-intel
32+
python-version: "3.9"
33+
- event_name: true
34+
os: macos-15-intel
35+
python-version: "3.10"
36+
- event_name: true
37+
os: macos-latest
38+
python-version: "3.9"
39+
- event_name: true
40+
os: macos-latest
41+
python-version: "3.10"
2142
runs-on: ${{ matrix.os }}
2243
name: Build ${{ matrix.os }} Python ${{ matrix.python-version }} Numpy ${{ matrix.numpy-version }}
2344
defaults:

0 commit comments

Comments
 (0)