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 6075cd6..c4607fb 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![crate](https://img.shields.io/crates/v/num-complex.svg)](https://crates.io/crates/num-complex) [![documentation](https://docs.rs/num-complex/badge.svg)](https://docs.rs/num-complex) [![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-complex/workflows/master/badge.svg)](https://github.com/rust-num/num-complex/actions) +[![build status](https://github.com/rust-num/num-complex/actions/workflows/main.yaml/badge.svg)](https://github.com/rust-num/num-complex/actions/workflows/main.yaml) `Complex` numbers for Rust. diff --git a/ci/test_full.sh b/ci/test_full.sh index 23369ab..f35c37f 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" @@ -30,8 +38,7 @@ fi FEATURES=(bytecheck bytemuck libm rand rkyv/size_64 serde) echo "Testing supported features: ${FEATURES[*]}" -cargo generate-lockfile -check_version 1.63.0 || cargo update -p libm --precise 0.2.9 +generate_lockfile set -x