File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 5454
5555 - name : Prepare CI
5656 if : " ${{ matrix.before_install != '' }}"
57- run : source '${{github.workspace}}/CI/before_install/${{matrix.before_install}}'
5857 shell : bash
58+ run : source '${{github.workspace}}/CI/before_install/${{matrix.before_install}}'
5959
6060 - name : Install Conan
6161 run : pipx install conan
@@ -75,22 +75,20 @@ jobs:
7575 run : conan cache clean
7676
7777 - name : Remove build requirements' binaries
78+ shell : bash
7879 run : |
79- graphFile="graph.json"
80- conan graph info . \
80+ buildPackages=$(conan graph info . \
8181 --profile=CI/conan/${{ matrix.conan_profile }} \
8282 --format=json \
8383 --build=never \
84- --out-file="$graphFile" \
8584 --no-remote \
86- --filter=context
87-
88- buildPackagesSelector='.graph.nodes[] | select(.context == "build") | .ref'
89- buildPackages=$(jq -r "$buildPackagesSelector" "$graphFile" | sort | uniq )
85+ --filter=context \
86+ | jq -rb '.graph.nodes[] | select(.context == "build") | .ref' \
87+ | sort | uniq \
88+ )
9089 for p in $buildPackages ; do
9190 conan remove --confirm "$p:*"
9291 done
93- shell : bash
9492
9593 - name : Create dependencies archive
9694 run : conan cache save --file dependencies-${{matrix.platform}}.tgz "*:*"
You can’t perform that action at this time.
0 commit comments