ci: do not reinstall existing pkgs in macos (#11900)

This commit is contained in:
nimlgen
2025-08-28 21:20:15 +03:00
committed by GitHub
parent 134cf56904
commit e8289c75b1

View File

@@ -225,7 +225,11 @@ runs:
- name: Install gpuocelot dependencies (MacOS)
if: inputs.ocelot == 'true' && runner.os == 'macOS'
shell: bash
run: brew install --quiet cmake ninja llvm@15 zlib glew flex bison boost zstd ncurses
run: |
pkgs=(cmake ninja llvm@15 zlib glew flex bison boost zstd ncurses)
for f in "${pkgs[@]}"; do
brew ls --versions "$f" >/dev/null 2>&1 || brew install --quiet "$f"
done
- name: Cache gpuocelot
if: inputs.ocelot == 'true'
id: cache-build