Skip to content

Commit 05a607a

Browse files
committedMar 13, 2025··
ci: Install Valgrind from specified commit
1 parent 4182cac commit 05a607a

File tree

1 file changed

+4
-24
lines changed
  • .github/actions/install-homebrew-valgrind

1 file changed

+4
-24
lines changed
 

‎.github/actions/install-homebrew-valgrind/action.yml

+4-24
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,10 @@ runs:
44
using: "composite"
55
steps:
66
- run: |
7+
brew update
78
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
2712
brew install --HEAD LouisBrunner/valgrind/valgrind
2813
shell: bash
29-
30-
- if: steps.cache.outputs.cache-hit == 'true'
31-
run: |
32-
brew link valgrind
33-
shell: bash

0 commit comments

Comments
 (0)
Please sign in to comment.