Skip to content

Commit 2495be0

Browse files
committed
fix strategy
1 parent d1000b3 commit 2495be0

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

.github/workflows/ci.yaml

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,35 @@ jobs:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
sdk: [3.6, stable, beta] # note, not testing on 3.3 due to build_runner CI dependency problem.
13-
protobuf: ["3.1.0", "4.0.0", "5.0.0"] # make sure works with both protobuf versions.
12+
# Test compatible SDK and protobuf version combinations
13+
# protobuf 3.1.0: SDK >= 2.19
14+
# protobuf 4.0.0: SDK >= 3.3
15+
# protobuf 4.1.0: SDK >= 3.6
16+
# protobuf 4.2.0+: SDK >= 3.7
17+
# protobuf 5.0.0+: SDK >= 3.7
18+
include:
19+
# Test older protobuf versions with SDK 3.4
20+
- sdk: "3.4"
21+
protobuf: "3.1.0"
22+
- sdk: "3.4"
23+
protobuf: "4.0.0"
24+
# Test latest protobuf versions with SDK 3.7+ (stable and beta)
25+
- sdk: stable
26+
protobuf: "3.1.0"
27+
- sdk: stable
28+
protobuf: "4.0.0"
29+
- sdk: stable
30+
protobuf: "4.2.0"
31+
- sdk: stable
32+
protobuf: "5.0.0"
33+
- sdk: beta
34+
protobuf: "3.1.0"
35+
- sdk: beta
36+
protobuf: "4.0.0"
37+
- sdk: beta
38+
protobuf: "4.2.0"
39+
- sdk: beta
40+
protobuf: "5.0.0"
1441
steps:
1542
- uses: actions/checkout@v4
1643

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: >
88
homepage: https://github.com/centrifugal/centrifuge-dart
99

1010
environment:
11-
sdk: '>=3.6.0 <4.0.0'
11+
sdk: '>=3.3.0 <4.0.0'
1212

1313
dependencies:
1414
fixnum: ^1.0.0

0 commit comments

Comments
 (0)