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 6f657a9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 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,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: |
Expand All @@ -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
Expand Down

0 comments on commit 6f657a9

Please sign in to comment.