chore: update CI workflow for Linux and macOS dependency installation

- Modified the CI configuration to enhance the installation of Linux packages by using a more efficient command.
- Updated macOS dependency installation to include LLVM version 18 and set the LLVM_PREFIX in the GitHub path for better accessibility.

Benefits:
- Streamlines the CI process for Linux and macOS, improving build reliability and ensuring necessary tools are available for the build environment.
This commit is contained in:
scawful
2025-10-21 15:11:41 -04:00
parent 4d60899ba4
commit ad48c0c4dd

View File

@@ -267,9 +267,11 @@ jobs:
run: |
if [[ "${{ runner.os }}" == "Linux" ]]; then
sudo apt-get update
xargs -a .github/workflows/scripts/linux-ci-packages.txt sudo apt-get install -y
sudo apt-get install -y $(tr '\n' ' ' < .github/workflows/scripts/linux-ci-packages.txt) ${{ matrix.cc }} ${{ matrix.cxx }}
elif [[ "${{ runner.os }}" == "macOS" ]]; then
brew install ninja pkg-config ccache
brew install llvm@18 ninja pkg-config ccache
LLVM_PREFIX=$(brew --prefix llvm@18)
echo "$LLVM_PREFIX/bin" >> $GITHUB_PATH
fi
- name: Retry Dependencies (Unix)