Skip to content

Commit

Permalink
ci(tests): better way to handle path
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-babichenko committed Nov 16, 2024
1 parent 5c82130 commit 4962a39
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ jobs:

- name: Generate coverage report
run: |
toolchain="$(grep '^default_toolchain' ~/.rustup/settings.toml | cut -d'"' -f2)"
PATH="$HOME/.rustup/toolchains/$toolchain/lib/rustlib/${toolchain#*-}/bin:$PATH"
PATH="$(rustc --print=target-libdir)/../bin:$PATH"
BINARIES="$(cargo test --no-run --message-format=json | jq -rj 'select(.profile.test == true) | .filenames[] | "--object " + . + " "')"
ARGS="-instr-profile fixit.profdata $BINARIES --object $PWD/target/debug/fixit"
llvm-profdata merge -sparse default_*.profraw -o fixit.profdata
Expand Down

0 comments on commit 4962a39

Please sign in to comment.