File tree Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Expand file tree Collapse file tree 3 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -78,16 +78,20 @@ jobs:
78
78
working-directory : build
79
79
run : |
80
80
export CONAN_LLVM_GIT_CACHE="${{ runner.temp }}/llvm-project"
81
- build_requires=$(conan info .. -pr:h default -pr:b default --build=outdated 2>/dev/null)
82
- if [[ "$build_requires" == *"Outdated package!"* ]];
81
+ conan info .. -pr:h default -pr:b default --build=outdated --json build_requires.json
82
+ build_requires=$(cat build_requires.json)
83
+ if [[ "$build_requires" == *"[]"* ]];
83
84
then
84
- all_in_cache=false
85
- else
86
85
all_in_cache=true
86
+ else
87
+ all_in_cache=false
87
88
fi
88
89
echo "all_in_cache=$all_in_cache" >> $GITHUB_OUTPUT
89
90
echo "Conan build requires: $build_requires"
90
91
echo "Conan cache is complete: $all_in_cache"
92
+ # If we have a cache miss on 'main', clear the cache.
93
+ # A dependency was updated, so we need to drop the old one
94
+ # to prevent unbounded cache growth over time.
91
95
- name : Conan install
92
96
id : conan_install
93
97
working-directory : build
Original file line number Diff line number Diff line change @@ -62,12 +62,13 @@ jobs:
62
62
working-directory : build
63
63
run : |
64
64
export CONAN_LLVM_GIT_CACHE="${{ runner.temp }}/llvm-project"
65
- build_requires=$(conan info .. -pr:h default -pr:b default --build=outdated 2>/dev/null)
66
- if [[ "$build_requires" == *"Outdated package!"* ]];
65
+ conan info .. -pr:h default -pr:b default --build=outdated --json build_requires.json
66
+ build_requires=$(cat build_requires.json)
67
+ if [[ "$build_requires" == *"[]"* ]];
67
68
then
68
- all_in_cache=false
69
- else
70
69
all_in_cache=true
70
+ else
71
+ all_in_cache=false
71
72
fi
72
73
echo "all_in_cache=$all_in_cache" >> $GITHUB_OUTPUT
73
74
echo "Conan build requires: $build_requires"
Original file line number Diff line number Diff line change 1
1
breathe
2
2
cmake >= 3.23
3
- conan == 1.59 .0
3
+ conan == 1.62 .0
4
4
Jinja2 == 3.0.3 # https://github.com/sphinx-doc/sphinx/issues/10291
5
5
lit >= 12.0.0
6
6
markupsafe == 2.0.1
You can’t perform that action at this time.
0 commit comments