Skip to content

Commit e555d09

Browse files
Update rebuildDependencies.yml
1 parent 3de8c8f commit e555d09

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/rebuildDependencies.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ jobs:
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 "*:*"

0 commit comments

Comments
 (0)