Skip to content

Commit aafa4c5

Browse files
committed
When testing rustc 1.36, use compatible dependencies.
The latest versions of `ppv-lite86` and `libc` don't compile with `rustc` 1.36. When testing with `rustc` 1.36, use the last compatible version of the dependencies.
1 parent 30685d2 commit aafa4c5

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,13 @@ jobs:
7878
cargo test --target ${{ matrix.target }} --benches --features=nightly
7979
cargo test --target ${{ matrix.target }} --manifest-path rand_distr/Cargo.toml --benches
8080
cargo test --target ${{ matrix.target }} --lib --tests --no-default-features --features min_const_gen
81+
- name: Update Cargo.lock 1.36
82+
if: ${{ matrix.toolchain == '1.36.0' }}
83+
run: |
84+
cargo update
85+
# Last version of some packages that compile with 1.36
86+
cargo update -p ppv-lite86 --precise 0.2.17
87+
cargo update -p libc --precise 0.2.164
8188
- name: Test rand
8289
run: |
8390
cargo test --target ${{ matrix.target }} --lib --tests --no-default-features

0 commit comments

Comments
 (0)