Skip to content

Commit 22cea07

Browse files
committed
Use mold for coverage
1 parent cad93fa commit 22cea07

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.circleci/config.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: 2.1
22

33
orbs:
4-
codecov: codecov/codecov@3.2.5
4+
codecov: codecov/codecov@4.1.0
55
win: circleci/windows@5.0
66

77
commands:
@@ -1089,13 +1089,18 @@ jobs:
10891089

10901090
coverage:
10911091
docker:
1092-
- image: rust:1.74.0
1092+
- image: rust:1.78.0-alpine3.19
10931093
environment:
10941094
# Limit the number of parallel jobs to avoid OOM crashes during doc testing
10951095
RUST_TEST_THREADS: 8
10961096
resource_class: medium+
10971097
steps:
10981098
- checkout
1099+
- run:
1100+
name: Install necessary packages
1101+
command: |
1102+
apk update
1103+
apk add mold clang curl coreutils gnupg
10991104
- run:
11001105
name: Install grcov
11011106
command: |
@@ -1114,8 +1119,11 @@ jobs:
11141119
grcov . -s packages/std --binary-path ./target/debug -t lcov -o ./reports/std.info
11151120
grcov . -s packages/vm --binary-path ./target/debug -t lcov -o ./reports/vm.info
11161121
environment:
1117-
RUSTFLAGS: "-Cinstrument-coverage"
1122+
RUSTFLAGS: "-Clinker=clang -Clink-arg=-fuse-ld=/usr/bin/mold -Cinstrument-coverage"
11181123
LLVM_PROFILE_FILE: "cosmwasm-%p-%m.profraw"
1124+
- run:
1125+
name: Quick fix for GPG error in Codecov
1126+
command: mkdir -p ~/.gnupg
11191127
- codecov/upload:
11201128
file: reports/core.info
11211129
flags: cosmwasm-core

0 commit comments

Comments
 (0)