Skip to content

Commit

Permalink
fix output dir
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex6323 committed Nov 4, 2024
1 parent 7f8e79d commit 1e28ca6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cargo_llvm_cov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ jobs:
rm "$file"
fi
done
cargo llvm-cov report --lcov --output-path target/llvm-cov/nextest.info
if [ -f "target/llvm-cov/nextest.info" ]; then
cargo llvm-cov report --lcov --output-path target/llvm-cov-target/nextest.info
if [ -f "target/llvm-cov-target/nextest.info" ]; then
echo "Nextest coverage created."
exit 0
else
Expand All @@ -87,7 +87,7 @@ jobs:
git clean -fd
set +e
./scripts/simtest/simtest-cov.sh
if [ -f "target/llvm-cov/simtest.info" ]; then
if [ -f "target/llvm-cov-target/simtest.info" ]; then
echo "Simtest coverage created."
exit 0
else
Expand All @@ -109,6 +109,6 @@ jobs:
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # pin@v4
with:
name: coverage_report
path: ./target/llvm-cov/coverage_report
path: ./target/llvm-cov-target/coverage_report
if-no-files-found: error
retention-days: 30
2 changes: 1 addition & 1 deletion scripts/simtest/simtest-cov.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ find target/llvm-cov-target -name '*.profraw' | while read file; do
fi
done

cargo llvm-cov report --lcov --output-path target/llvm-cov/simtest.info
cargo llvm-cov report --lcov --output-path target/llvm-cov-target/simtest.info

# remove the patch
git checkout .cargo/config Cargo.toml Cargo.lock

0 comments on commit 1e28ca6

Please sign in to comment.