File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : master
1+ name : main
22on :
33 push :
44 branches :
5- - master
5+ - main
66 schedule :
77 - cron : ' 0 0 * * 0' # 00:00 Sunday
88
Original file line number Diff line number Diff line change 33[ ![ crate] ( https://img.shields.io/crates/v/num-integer.svg )] ( https://crates.io/crates/num-integer )
44[ ![ documentation] ( https://docs.rs/num-integer/badge.svg )] ( https://docs.rs/num-integer )
55[ ![ minimum rustc 1.31] ( https://img.shields.io/badge/rustc-1.31+-red.svg )] ( https://rust-lang.github.io/rfcs/2495-min-rust-version.html )
6- [ ![ build status] ( https://github.com/rust-num/num-integer/workflows/master /badge.svg )] ( https://github.com/rust-num/num-integer/actions )
6+ [ ![ build status] ( https://github.com/rust-num/num-integer/actions/ workflows/main.yaml /badge.svg )] ( https://github.com/rust-num/num-integer/actions/workflows/main.yaml )
77
88` Integer ` trait and functions for Rust.
99
Original file line number Diff line number Diff line change @@ -21,6 +21,14 @@ check_version() {
2121 ]]
2222}
2323
24+ export CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS=fallback
25+ generate_lockfile () {
26+ cargo generate-lockfile
27+ if ! check_version 1.85 ; then
28+ cargo +stable update
29+ fi
30+ }
31+
2432echo " Testing $CRATE on rustc $RUST_VERSION "
2533if ! check_version $MSRV ; then
2634 echo " The minimum for $CRATE is rustc $MSRV "
3038FEATURES=()
3139echo " Testing supported features: ${FEATURES[*]} "
3240
33- cargo generate-lockfile
34-
35- # num-traits 0.2.19 started using dep: features, which requires 1.60 and is
36- # otherwise ignored down to 1.51, but we need a manual downgrade before that.
37- check_version 1.51 || cargo update -p num-traits --precise 0.2.18
41+ generate_lockfile
3842
3943set -x
4044
You can’t perform that action at this time.
0 commit comments