File tree 1 file changed +4
-24
lines changed
.github/actions/install-homebrew-valgrind
1 file changed +4
-24
lines changed Original file line number Diff line number Diff line change 4
4
using : " composite"
5
5
steps :
6
6
- run : |
7
+ brew update
7
8
brew tap LouisBrunner/valgrind
8
- brew fetch --HEAD LouisBrunner/valgrind/valgrind
9
- echo "CI_HOMEBREW_CELLAR_VALGRIND=$(brew --cellar valgrind)" >> "$GITHUB_ENV"
10
- shell: bash
11
-
12
- - run : |
13
- sw_vers > valgrind_fingerprint
14
- brew --version >> valgrind_fingerprint
15
- git -C "$(brew --cache)/valgrind--git" rev-parse HEAD >> valgrind_fingerprint
16
- cat valgrind_fingerprint
17
- shell: bash
18
-
19
- - uses : actions/cache@v4
20
- id : cache
21
- with :
22
- path : ${{ env.CI_HOMEBREW_CELLAR_VALGRIND }}
23
- key : ${{ github.job }}-valgrind-${{ hashFiles('valgrind_fingerprint') }}
24
-
25
- - if : steps.cache.outputs.cache-hit != 'true'
26
- run : |
9
+ pushd "$(brew --repo LouisBrunner/valgrind)"
10
+ git checkout d14be1d4f76466560ed6515d0f314f0925522456
11
+ popd
27
12
brew install --HEAD LouisBrunner/valgrind/valgrind
28
13
shell: bash
29
-
30
- - if : steps.cache.outputs.cache-hit == 'true'
31
- run : |
32
- brew link valgrind
33
- shell : bash
You can’t perform that action at this time.
0 commit comments