File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 2323
2424set -ux
2525
26- FEATURES_OPTION=" --features feat_os_unix"
27-
2826ME=" ${0} "
2927ME_dir=" $( dirname -- " $( readlink -fm -- " ${ME} " ) " ) "
3028REPO_main_dir=" $( dirname -- " ${ME_dir} " ) "
3129
30+ FEATURES_OPTION=${FEATURES_OPTION:- " --features feat_os_unix" }
31+ COVERAGE_DIR=${COVERAGE_DIR:- " ${REPO_main_dir} /coverage" }
32+
3233LLVM_BIN_PATH=" $( rustc --print sysroot) /lib/rustlib/x86_64-unknown-linux-gnu/bin"
3334LLVM_PROFDATA=" ${LLVM_BIN_PATH} /llvm-profdata"
3435
35- PROFRAW_DIR=" ${REPO_main_dir} /coverage/traces"
36- PROFDATA_DIR=" ${REPO_main_dir} /coverage/data"
37- REPORT_DIR=" ${REPO_main_dir} /coverage/report"
36+ PROFRAW_DIR=" ${COVERAGE_DIR} /traces"
37+ PROFDATA_DIR=" ${COVERAGE_DIR} /data"
38+ REPORT_DIR=" ${COVERAGE_DIR} /report"
39+ REPORT_PATH=" ${REPORT_DIR} /total.lcov.info"
3840
3941rm -rf " ${PROFRAW_DIR} " && mkdir -p " ${PROFRAW_DIR} "
4042rm -rf " ${PROFDATA_DIR} " && mkdir -p " ${PROFDATA_DIR} "
@@ -76,6 +78,9 @@ grcov \
7678 " ${PROFDATA_DIR} " \
7779 --binary-path " ${REPO_main_dir} /target/debug/coreutils" \
7880 --output-types lcov \
79- --output-path " ${REPORT_DIR} /${UTIL} .lcov.info" \
81+ --output-path " ${REPORT_DIR} /total .lcov.info" \
8082 --llvm \
8183 --keep-only " ${REPO_main_dir} " ' /src/*'
84+
85+ # Notify the report file to github
86+ echo " report=${REPORT_PATH} " >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments