]> Repositorios git - scryer-prolog.git/commitdiff
Install version of iai-callgrind set in Cargo.toml
authorinfogulch <[email protected]>
Thu, 29 Feb 2024 23:20:01 +0000 (17:20 -0600)
committerinfogulch <[email protected]>
Thu, 29 Feb 2024 23:32:44 +0000 (17:32 -0600)
.github/workflows/ci.yml

index 44aad834077f2eae82a0ba79ef3cb089506feae9..6e1d8177a8f339275c67c076032762e237a07a1f 100644 (file)
@@ -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