diff --git a/.github/workflows/master.yaml b/.github/workflows/main.yaml similarity index 95% rename from .github/workflows/master.yaml rename to .github/workflows/main.yaml index 034e379..d916436 100644 --- a/.github/workflows/master.yaml +++ b/.github/workflows/main.yaml @@ -1,8 +1,8 @@ -name: master +name: main on: push: branches: - - master + - main schedule: - cron: '0 0 * * 0' # 00:00 Sunday diff --git a/README.md b/README.md index 9ddf0dd..a1f7609 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![crate](https://img.shields.io/crates/v/num-rational.svg)](https://crates.io/crates/num-rational) [![documentation](https://docs.rs/num-rational/badge.svg)](https://docs.rs/num-rational) [![minimum rustc 1.60](https://img.shields.io/badge/rustc-1.60+-red.svg)](https://rust-lang.github.io/rfcs/2495-min-rust-version.html) -[![build status](https://github.com/rust-num/num-rational/workflows/master/badge.svg)](https://github.com/rust-num/num-rational/actions) +[![build status](https://github.com/rust-num/num-rational/actions/workflows/main.yaml/badge.svg)](https://github.com/rust-num/num-rational/actions/workflows/main.yaml) Generic `Rational` numbers (aka fractions) for Rust. diff --git a/ci/test_full.sh b/ci/test_full.sh index 631086a..f4309ab 100755 --- a/ci/test_full.sh +++ b/ci/test_full.sh @@ -21,6 +21,14 @@ check_version() { ]] } +export CARGO_RESOLVER_INCOMPATIBLE_RUST_VERSIONS=fallback +generate_lockfile() { + cargo generate-lockfile + if ! check_version 1.85 ; then + cargo +stable update + fi +} + echo "Testing $CRATE on rustc $RUST_VERSION" if ! check_version $MSRV ; then echo "The minimum for $CRATE is rustc $MSRV" @@ -32,6 +40,8 @@ NO_STD_FEATURES=(num-bigint serde) echo "Testing supported features: ${STD_FEATURES[*]}" echo " no_std supported features: ${NO_STD_FEATURES[*]}" +generate_lockfile + set -x # test the default with std