From ccab8516d8bc1fae8e65d854c3c32a39ff3b07fd Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Fri, 10 Feb 2023 13:52:36 -0800 Subject: [PATCH 1/2] ci: downgrade libm for MSRV testing --- ci/test_full.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ci/test_full.sh b/ci/test_full.sh index 5b5bef3f1..f43635be9 100755 --- a/ci/test_full.sh +++ b/ci/test_full.sh @@ -37,6 +37,11 @@ if [ -n "${ALLOC_FEATURES[*]}" ]; then echo " alloc supported features: ${ALLOC_FEATURES[*]}" fi +cargo generate-lockfile + +# libm 0.2.6 started using {float}::EPSILON +check_version 1.43 || cargo update -p libm --precise 0.2.5 + set -x # test the default with std From b1b3127fbbbf9eae32e24ba7093196130cb28329 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Fri, 10 Feb 2023 14:13:56 -0800 Subject: [PATCH 2/2] ci: downgrade libm in the no-std job too --- .github/workflows/ci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 853060601..005509db0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -47,6 +47,7 @@ jobs: - uses: dtolnay/rust-toolchain@1.31.0 with: target: thumbv6m-none-eabi + - run: cargo generate-lockfile && cargo update -p libm --precise 0.2.5 - run: cargo build --target thumbv6m-none-eabi --no-default-features --features "libm" fmt: