From fdcd236e0772513b0980dccac5f6dbbe321320aa Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Tue, 4 Mar 2025 14:17:39 +0100 Subject: [PATCH 1/3] Add cargo-semver-check to CI --- .circleci/config.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index cad7da99..8a2aa984 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -91,6 +91,13 @@ jobs: - run: name: Run cargo +nightly fmt check command: cargo +nightly fmt --all -- --check + - run: + name: Install cargo-semver-check + command: cargo install cargo-semver-checks --locked + - run: + name: Run cargo-semver-check + command: cargo semver-checks --exclude validation-wasm-demo + wasm: parameters: From 89f36b733b1a5bb0446b6c6e418b415608b246a6 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Tue, 4 Mar 2025 14:21:32 +0100 Subject: [PATCH 2/3] Use pre-compiled cargo-semver-checks --- .circleci/config.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8a2aa984..28fefb22 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -93,7 +93,9 @@ jobs: command: cargo +nightly fmt --all -- --check - run: name: Install cargo-semver-check - command: cargo install cargo-semver-checks --locked + command: > + curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash && + cargo binstall cargo-semver-checks - run: name: Run cargo-semver-check command: cargo semver-checks --exclude validation-wasm-demo From dcd2f8293b26ca555867395d1aed94b606309ed4 Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Tue, 4 Mar 2025 14:28:41 +0100 Subject: [PATCH 3/3] Upgrade Circle-CI Linux image https://circleci.com/developer/images/image/cimg/base#how-this-image-works documents `current` as: > This image tag points to the latest, production ready base image. This is a replacement for the old `stable` tag. This image should be used by projects that want a decent level of stability but would like to get occasional software updates. It is typically updated once a month. `stable` is an alias for `2022.08-20.04`. With it, using pre-compiled cargo-semver-checks failed: ``` /home/circleci/.cargo/bin/cargo-semver-checks: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.38' not found (required by /home/circleci/.cargo/bin/cargo-semver-checks) /home/circleci/.cargo/bin/cargo-semver-checks: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /home/circleci/.cargo/bin/cargo-semver-checks) /home/circleci/.cargo/bin/cargo-semver-checks: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /home/circleci/.cargo/bin/cargo-semver-checks) /home/circleci/.cargo/bin/cargo-semver-checks: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /home/circleci/.cargo/bin/cargo-semver-checks) /home/circleci/.cargo/bin/cargo-semver-checks: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.39' not found (required by /home/circleci/.cargo/bin/cargo-semver-checks) ``` --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 28fefb22..6b4406ee 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -12,7 +12,7 @@ orbs: executors: linux: &linux docker: - - image: cimg/base:stable + - image: cimg/base:current resource_class: medium+ macos: &macos macos: