diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 17e1df72ca4..68cd4f06339 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -31,6 +31,9 @@ jobs: - name: Enable collection of source-based coverage run: | + # Prepare directory + sudo mkdir "$COVERAGE_PATH" + sudo chmod 777 "$COVERAGE_PATH" # The following are necessary for profiling (see https://github.com/mozilla/grcov) echo "RUSTFLAGS=-Cinstrument-coverage" >> $GITHUB_ENV echo "LLVM_PROFILE_FILE=${COVERAGE_PATH}/gcov-%p-%m.profraw" >> $GITHUB_ENV