From 6f657a9268f6d2d7d13d05bdf04dfd443d238799 Mon Sep 17 00:00:00 2001 From: Aumetra Weisman Date: Wed, 18 Sep 2024 14:05:16 +0200 Subject: [PATCH] Use mold linker --- .circleci/config.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e5ba95d4c..b595733fd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1086,7 +1086,7 @@ jobs: coverage: docker: - - image: rust:1.78.0-slim + - image: rust:1.78.0-alpine environment: CARGO_TERM_COLOR: "always" resource_class: medium+ @@ -1095,11 +1095,11 @@ jobs: - run: name: Install necessary packages command: | - apt update - apt install -y curl gnupg - - restore_cache: - keys: - - cargocache-v2-coverage-rust:1.78-{{ checksum "Cargo.lock" }} + apk update + apk add mold clang curl coreutils gnupg + #- restore_cache: + # keys: + # - cargocache-v2-coverage-rust:1.78-{{ checksum "Cargo.lock" }} - run: name: Install cargo-llvm-cov command: | @@ -1112,6 +1112,8 @@ jobs: name: Run tests with coverage command: | cargo llvm-cov nextest --all-features --workspace --lcov --output-path lcov.info + environment: + RUSTFLAGS: "-Clinker=clang -Clink-arg=-fuse-ld=/usr/bin/mold" - run: name: Quick fix for GPG error in Codecov command: mkdir -p ~/.gnupg