Skip to content

Commit

Permalink
Use mold linker
Browse files Browse the repository at this point in the history
  • Loading branch information
aumetra committed Sep 18, 2024
1 parent d4ec457 commit 86e8a01
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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+
Expand All @@ -1095,23 +1095,25 @@ 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: |
cargo install cargo-llvm-cov --locked
- run:
name: Install cargo-nextest
command: |
curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-/usr/local/cargo}/bin
- run:
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
Expand Down

0 comments on commit 86e8a01

Please sign in to comment.