|
7 | 7 | branches: [master]
|
8 | 8 |
|
9 | 9 | env:
|
10 |
| - rust_version: 1.53.0 |
| 10 | + rust_version: 1.61.0 |
11 | 11 |
|
12 | 12 | jobs:
|
13 | 13 | lint:
|
14 | 14 | runs-on: ubuntu-20.04
|
15 | 15 | steps:
|
16 |
| - - uses: actions/checkout@v2 |
17 |
| - - uses: actions-rs/toolchain@v1 |
18 |
| - with: |
19 |
| - toolchain: ${{ env.rust_version }} |
20 |
| - default: true |
21 |
| - components: rustfmt, clippy |
22 |
| - - run: cargo fmt -- --check |
23 |
| - - run: cargo clippy -- -Dwarnings |
24 |
| - - run: cargo test --doc |
| 16 | + - uses: actions/checkout@v3 |
| 17 | + - uses: dtolnay/rust-toolchain@b44cb146d03e8d870c57ab64b80f04586349ca5d |
| 18 | + with: |
| 19 | + toolchain: ${{ env.rust_version }} |
| 20 | + components: rustfmt, clippy |
| 21 | + - run: cargo fmt -- --check |
| 22 | + - run: cargo clippy -- -Dwarnings |
| 23 | + - run: cargo test --doc |
25 | 24 |
|
26 | 25 | check:
|
27 | 26 | strategy:
|
28 | 27 | matrix:
|
29 | 28 | include:
|
30 |
| - - os: macos-11.0 |
31 |
| - - os: windows-2019 |
32 |
| - features: cmake-build,libz-static,curl-static |
33 |
| - rdkafka-sys-features: cmake-build,libz-static,curl-static |
34 |
| - - os: ubuntu-20.04 |
35 |
| - features: tracing |
36 |
| - - os: ubuntu-20.04 |
37 |
| - features: cmake-build,ssl-vendored,gssapi-vendored,libz-static,curl-static,zstd |
38 |
| - rdkafka-sys-features: cmake-build,ssl-vendored,gssapi-vendored,libz-static,curl-static,zstd |
| 29 | + - os: macos-11.0 |
| 30 | + - os: windows-2019 |
| 31 | + features: cmake-build,libz-static,curl-static |
| 32 | + rdkafka-sys-features: cmake-build,libz-static,curl-static |
| 33 | + - os: ubuntu-20.04 |
| 34 | + features: tracing |
| 35 | + - os: ubuntu-20.04 |
| 36 | + features: cmake-build,ssl-vendored,gssapi-vendored,libz-static,curl-static,zstd |
| 37 | + rdkafka-sys-features: cmake-build,ssl-vendored,gssapi-vendored,libz-static,curl-static,zstd |
39 | 38 | runs-on: ${{ matrix.os }}
|
40 | 39 | steps:
|
41 |
| - - uses: actions/checkout@v2 |
42 |
| - - uses: actions-rs/toolchain@v1 |
43 |
| - with: |
44 |
| - toolchain: ${{ env.rust_version }} |
45 |
| - default: true |
46 |
| - - run: cargo build --all-targets --verbose --features "${{ matrix.features }}" |
47 |
| - - run: cd rdkafka-sys && cargo test --features "${{ matrix.rdkafka-sys-features }}" |
| 40 | + - uses: actions/checkout@v3 |
| 41 | + - uses: dtolnay/rust-toolchain@b44cb146d03e8d870c57ab64b80f04586349ca5d |
| 42 | + with: |
| 43 | + toolchain: ${{ env.rust_version }} |
| 44 | + - run: cargo build --all-targets --verbose --features "${{ matrix.features }}" |
| 45 | + - run: cd rdkafka-sys && cargo test --features "${{ matrix.rdkafka-sys-features }}" |
48 | 46 |
|
49 | 47 | # Use the `minimal-versions` resolver to ensure we're not claiming to support
|
50 | 48 | # an older version of a dependency than we actually do.
|
51 | 49 | check-minimal-versions:
|
52 | 50 | runs-on: ubuntu-20.04
|
53 | 51 | steps:
|
54 |
| - - uses: actions/checkout@v2 |
55 |
| - - uses: actions-rs/toolchain@v1 |
56 |
| - with: |
57 |
| - # The version of this toolchain doesn't matter much. It's only used to |
58 |
| - # generate the minimal-versions lockfile, not to actually run `cargo |
59 |
| - # check`. |
60 |
| - toolchain: nightly-2021-01-05 |
61 |
| - components: rustfmt, clippy |
62 |
| - - uses: actions-rs/toolchain@v1 |
63 |
| - with: |
64 |
| - toolchain: ${{ env.rust_version }} |
65 |
| - default: true |
66 |
| - - run: cargo +nightly-2021-01-05 -Z minimal-versions generate-lockfile |
67 |
| - - run: cargo check |
| 52 | + - uses: actions/checkout@v3 |
| 53 | + - uses: dtolnay/rust-toolchain@b44cb146d03e8d870c57ab64b80f04586349ca5d |
| 54 | + with: |
| 55 | + # The version of this toolchain doesn't matter much. It's only used to |
| 56 | + # generate the minimal-versions lockfile, not to actually run `cargo |
| 57 | + # check`. |
| 58 | + toolchain: nightly-2021-01-05 |
| 59 | + components: rustfmt, clippy |
| 60 | + - uses: dtolnay/rust-toolchain@b44cb146d03e8d870c57ab64b80f04586349ca5d |
| 61 | + with: |
| 62 | + toolchain: ${{ env.rust_version }} |
| 63 | + - run: rustup default ${{ env.rust_version }} |
| 64 | + - run: cargo +nightly-2021-01-05 -Z minimal-versions generate-lockfile |
| 65 | + - run: cargo check |
68 | 66 |
|
69 | 67 | test:
|
70 | 68 | strategy:
|
71 | 69 | fail-fast: false
|
72 | 70 | matrix:
|
73 | 71 | include:
|
74 |
| - - confluent-version: 5.3.1 |
75 |
| - kafka-version: 2.3 |
76 |
| - - confluent-version: 5.0.3 |
77 |
| - kafka-version: 2.0 |
78 |
| - - confluent-version: 4.1.3 |
79 |
| - kafka-version: 1.1 |
| 72 | + - confluent-version: 5.3.1 |
| 73 | + kafka-version: 2.3 |
| 74 | + - confluent-version: 5.0.3 |
| 75 | + kafka-version: 2.0 |
| 76 | + - confluent-version: 4.1.3 |
| 77 | + kafka-version: 1.1 |
80 | 78 | runs-on: ubuntu-20.04
|
81 | 79 | steps:
|
82 |
| - - uses: actions/checkout@v2 |
83 |
| - - uses: actions-rs/toolchain@v1 |
84 |
| - with: |
85 |
| - toolchain: ${{ env.rust_version }} |
86 |
| - default: true |
87 |
| - - run: sudo apt-get update |
88 |
| - - run: sudo apt-get install -qy valgrind |
89 |
| - - run: ./test_suite.sh |
90 |
| - env: |
91 |
| - CONFLUENT_VERSION: ${{ matrix.confluent-version }} |
92 |
| - KAFKA_VERSION: ${{ matrix.kafka-version }} |
93 |
| - TERM: xterm-256color |
| 80 | + - uses: actions/checkout@v3 |
| 81 | + - uses: dtolnay/rust-toolchain@b44cb146d03e8d870c57ab64b80f04586349ca5d |
| 82 | + with: |
| 83 | + toolchain: ${{ env.rust_version }} |
| 84 | + - run: sudo apt-get update |
| 85 | + - run: sudo apt-get install -qy valgrind |
| 86 | + - run: ./test_suite.sh |
| 87 | + env: |
| 88 | + CONFLUENT_VERSION: ${{ matrix.confluent-version }} |
| 89 | + KAFKA_VERSION: ${{ matrix.kafka-version }} |
| 90 | + TERM: xterm-256color |
0 commit comments