Skip to content

Commit 8ec4151

Browse files
committed
ci: do not run PR tests on macOS
Running on main branch only is enough, it is unlikely that macOS does not work when Linux does.
1 parent 19d3485 commit 8ec4151

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,12 @@ jobs:
116116
# Minimum Supported Rust Version
117117
- os: ubuntu-latest
118118
rust: minimum
119+
120+
# Do not run macOS on PRs, it is slow.
121+
# macOS CI will run on main branch once PR is merged.
122+
exclude:
123+
- os: github.event_name == 'pull_request' && 'macos-latest' || ''
124+
119125
runs-on: ${{ matrix.os }}
120126
timeout-minutes: 60
121127
steps:
@@ -345,6 +351,11 @@ jobs:
345351
- os: ubuntu-latest
346352
python: "3.10"
347353

354+
# Do not run macOS on PRs, it is slow.
355+
# macOS CI will run on main branch once PR is merged.
356+
exclude:
357+
- os: github.event_name == 'pull_request' && 'macos-latest' || ''
358+
348359
runs-on: ${{ matrix.os }}
349360
timeout-minutes: 60
350361
steps:

0 commit comments

Comments
 (0)