From: infogulch Date: Thu, 29 Feb 2024 23:20:01 +0000 (-0600) Subject: Install version of iai-callgrind set in Cargo.toml X-Git-Tag: v0.10.0~158^2 X-Git-Url: https://git.sagredo.dev/?a=commitdiff_plain;h=01f757c94096bbd9b29b1c3b3cf3f4e090f60b9c;p=scryer-prolog.git Install version of iai-callgrind set in Cargo.toml --- diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 44aad834..6e1d8177 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -140,10 +140,12 @@ jobs: rust-version: stable targets: x86_64-unknown-linux-gnu cache-context: report - - run: | + - name: Install CLI tools + run: | cargo install cargo2junit --force - # cargo install iai-callgrind-runner --force --version `cargo metadata --format-version 1 | jq -r '.resolve.nodes[].id|split(" ")|select(.[0]=="iai-callgrind")|.[1]'` - cargo install iai-callgrind-runner --force --git https://github.com/iai-callgrind/iai-callgrind --rev c77bc3c83d7f4e976cc42d4597236a8db259e772 + version=`yq -ptoml -oy -r '.target.*.dev-dependencies.iai-callgrind|select(.)' Cargo.toml` + echo installing iai-callgrind "$version" + cargo install iai-callgrind-runner --force --version "$version" sudo apt install valgrind -y - name: Test and report