Skip to content

Commit

Permalink
Merge pull request #2351 from infogulch/install-current-iai
Browse files Browse the repository at this point in the history
Install version of iai-callgrind set in Cargo.toml
  • Loading branch information
mthom authored Mar 1, 2024
2 parents 42f4827 + 01f757c commit e0c8163
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e0c8163

Please sign in to comment.