Try to fix CI for old rustc versions by pinning cfg-if to 0.1.9

This should fix error: non-ident macro paths are experimental (see issue #35896)
This commit is contained in:
Rafał Harabień 2019-11-11 00:09:02 +01:00
parent 75789c6a00
commit 0676e40b25

View File

@ -7,6 +7,7 @@ matrix:
- rust: 1.24.0
script:
# Build only the library (examples may fail)
- cargo update && cargo update -p cfg-if --precise 0.1.9
- cargo build
- rust: stable
- rust: beta
@ -16,7 +17,7 @@ matrix:
# nostd build
# byteorder crate version is configured here to fix build in old nightly compiler
# See: https://github.com/BurntSushi/byteorder/pull/150
- cargo update && cargo update -p byteorder --precise 1.2.7
- cargo update && cargo update -p byteorder --precise 1.2.7 && cargo update -p cfg-if --precise 0.1.9
- cargo build --no-default-features --features core_io
- cargo build --no-default-features --features core_io,alloc
- rust: nightly-2019-07-01