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:
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user