ci:remove pre-install pkg-config

This commit is contained in:
luoliwoshang
2024-11-26 11:21:51 +08:00
parent 12529ec81e
commit 2a2c614eb4
3 changed files with 8 additions and 2 deletions

6
.github/workflows/cleanup.sh vendored Normal file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
set -e
if pkg=$(brew list | grep -E "pkg-config"); then
brew uninstall "$pkg" || true
fi

View File

@@ -43,7 +43,7 @@ jobs:
run: |
set -e
set -x
brew uninstall pkg-config@0.29.2
bash .github/workflows/cleanup.sh
source doc/_readme/scripts/install_macos.sh
- name: Install dependencies on Ubuntu

View File

@@ -41,7 +41,7 @@ jobs:
- name: Install dependencies
if: startsWith(matrix.os, 'macos')
run: |
brew uninstall pkg-config@0.29.2
bash .github/workflows/cleanup.sh
brew update
brew install llvm@${{matrix.llvm}} pkg-config bdw-gc openssl libffi
echo "$(brew --prefix llvm@${{matrix.llvm}})/bin" >> $GITHUB_PATH