|
18 | 18 | - { name: Windows (MinGW), os: windows-latest, triple: x86_64-pc-windows-gnu } |
19 | 19 | - { name: Windows (32-bit), os: windows-latest, triple: i686-pc-windows-msvc } |
20 | 20 | version: |
21 | | - - 1.46.0 # MSRV |
| 21 | + - 1.52.0 # MSRV for -server and -tls |
22 | 22 | - stable |
23 | 23 | - nightly |
24 | 24 |
|
|
64 | 64 |
|
65 | 65 | # - name: Generate Cargo.lock |
66 | 66 | # uses: actions-rs/cargo@v1 |
67 | | - # with: |
68 | | - # command: generate-lockfile |
| 67 | + # with: { command: generate-lockfile } |
69 | 68 | # - name: Cache Dependencies |
70 | 69 | # uses: Swatinem/[email protected] |
71 | 70 |
|
@@ -117,27 +116,67 @@ jobs: |
117 | 116 | cargo ci-test-rt-linux |
118 | 117 | cargo ci-test-server-linux |
119 | 118 |
|
| 119 | + - name: Clear the cargo caches |
| 120 | + run: | |
| 121 | + cargo install cargo-cache --version 0.6.2 --no-default-features --features ci-autoclean |
| 122 | + cargo-cache |
| 123 | + |
| 124 | + build_and_test_lower_msrv: |
| 125 | + name: Linux / 1.46 (lower MSRV) |
| 126 | + runs-on: ubuntu-latest |
| 127 | + steps: |
| 128 | + - uses: actions/checkout@v2 |
| 129 | + |
| 130 | + - name: Install 1.46.0 # MSRV for all but -server and -tls |
| 131 | + uses: actions-rs/toolchain@v1 |
| 132 | + with: |
| 133 | + toolchain: 1.46.0-x86_64-unknown-linux-gnu |
| 134 | + profile: minimal |
| 135 | + override: true |
| 136 | + |
| 137 | + - name: Install cargo-hack |
| 138 | + uses: actions-rs/cargo@v1 |
| 139 | + with: |
| 140 | + command: install |
| 141 | + args: cargo-hack |
| 142 | + |
| 143 | + - name: tests |
| 144 | + run: cargo ci-test-lower-msrv |
| 145 | + |
| 146 | + - name: Clear the cargo caches |
| 147 | + run: | |
| 148 | + cargo install cargo-cache --version 0.6.2 --no-default-features --features ci-autoclean |
| 149 | + cargo-cache |
| 150 | + |
| 151 | + coverage: |
| 152 | + name: coverage |
| 153 | + runs-on: ubuntu-latest |
| 154 | + steps: |
| 155 | + - uses: actions/checkout@v2 |
| 156 | + |
| 157 | + - name: Install Rust (nightly) |
| 158 | + uses: actions-rs/toolchain@v1 |
| 159 | + with: |
| 160 | + toolchain: stable-x86_64-unknown-linux-gnu |
| 161 | + profile: minimal |
| 162 | + override: true |
| 163 | + |
| 164 | + - name: Generate Cargo.lock |
| 165 | + uses: actions-rs/cargo@v1 |
| 166 | + with: { command: generate-lockfile } |
| 167 | + - name: Cache Dependencies |
| 168 | + |
| 169 | + |
120 | 170 | - name: Generate coverage file |
121 | | - if: > |
122 | | - matrix.target.os == 'ubuntu-latest' |
123 | | - && matrix.version == 'stable' |
124 | | - && github.ref == 'refs/heads/master' |
| 171 | + if: github.ref == 'refs/heads/master' |
125 | 172 | run: | |
126 | 173 | cargo install cargo-tarpaulin |
127 | 174 | cargo tarpaulin --out Xml --verbose |
128 | 175 | - name: Upload to Codecov |
129 | | - if: > |
130 | | - matrix.target.os == 'ubuntu-latest' |
131 | | - && matrix.version == 'stable' |
132 | | - && github.ref == 'refs/heads/master' |
| 176 | + if: github.ref == 'refs/heads/master' |
133 | 177 | uses: codecov/codecov-action@v1 |
134 | 178 | with: { file: cobertura.xml } |
135 | 179 |
|
136 | | - - name: Clear the cargo caches |
137 | | - run: | |
138 | | - cargo install cargo-cache --version 0.6.2 --no-default-features --features ci-autoclean |
139 | | - cargo-cache |
140 | | -
|
141 | 180 | rustdoc: |
142 | 181 | name: rustdoc |
143 | 182 | runs-on: ubuntu-latest |
|
0 commit comments