Skip to content

Commit 2647583

Browse files
authored
Merge pull request #4410 from joostjager/pr-matrix
Restrict CI build matrix to Linux+MSRV for PRs
2 parents caf0aac + 1685661 commit 2647583

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,14 @@ jobs:
3030
strategy:
3131
fail-fast: false
3232
matrix:
33-
platform: [ self-hosted, windows-latest, macos-latest ]
34-
toolchain: [ stable, beta, 1.75.0 ] # 1.75.0 is the MSRV for all crates
33+
platform: >-
34+
${{ github.event_name == 'push' && github.ref == 'refs/heads/main'
35+
&& fromJSON('["self-hosted","windows-latest","macos-latest"]')
36+
|| fromJSON('["self-hosted"]') }}
37+
toolchain: >-
38+
${{ github.event_name == 'push' && github.ref == 'refs/heads/main'
39+
&& fromJSON('["stable","beta","1.75.0"]')
40+
|| fromJSON('["1.75.0"]') }}
3541
exclude:
3642
- platform: windows-latest
3743
toolchain: 1.75.0

0 commit comments

Comments
 (0)