Skip to content

Commit c2b382e

Browse files
EdueskaWeizglikely
authored andcommitted
ci: repair the gersemi and clang-format checks
Homebrew no longer runs formula install steps from untrusted third party taps, so the gersemi and clang-format checks fail while installing: Skipping obsproject/tools because it is not trusted. Error: unknown install step: run Refresh the Homebrew metadata and trust the obsproject/tools tap explicitly before installing, mirroring the fix applied upstream in obs-studio. Signed-off-by: EdueskaWeiz (GitHub user) Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
1 parent 858d220 commit c2b382e

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/actions/run-clang-format/action.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ runs:
3636
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
3737
echo "/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin" >> $GITHUB_PATH
3838
echo "/home/linuxbrew/.linuxbrew/opt/clang-format@19/bin" >> $GITHUB_PATH
39+
brew update
3940
brew install --quiet zsh
4041
echo ::endgroup::
4142
@@ -51,6 +52,8 @@ runs:
5152
if (( ${+RUNNER_DEBUG} )) setopt XTRACE
5253
5354
print ::group::Install clang-format-19
55+
brew update
56+
brew trust obsproject/tools
5457
brew install --quiet obsproject/tools/clang-format@19
5558
print ::endgroup::
5659

.github/actions/run-gersemi/action.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ runs:
3535
echo ::group::Install Dependencies
3636
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
3737
echo "/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin" >> $GITHUB_PATH
38+
brew update
3839
brew install --quiet zsh
3940
echo ::endgroup::
4041
@@ -50,6 +51,8 @@ runs:
5051
if (( ${+RUNNER_DEBUG} )) setopt XTRACE
5152
5253
print ::group::Install gersemi
54+
brew update
55+
brew trust obsproject/tools
5356
brew install --quiet obsproject/tools/gersemi
5457
print ::endgroup::
5558

0 commit comments

Comments
 (0)