Skip to content

Commit

Permalink
ci: install libclang
Browse files Browse the repository at this point in the history
  • Loading branch information
yihau committed Feb 10, 2025
1 parent 52ec340 commit a3f8d50
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/scripts/install-all-deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ os_name="$1"
source "$here/install-openssl.sh" "$os_name"
# shellcheck source=.github/scripts/install-proto.sh
source "$here/install-proto.sh" "$os_name"
# shellcheck source=.github/scripts/install-libclang-dev.sh
source "$here/install-libclang-dev.sh" "$os_name"
23 changes: 23 additions & 0 deletions .github/scripts/install-libclang-dev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env bash

set -e

os_name="$1"

case "$os_name" in
"Windows")
choco install openssl --version 3.3.2 --install-arguments="'/DIR=C:\OpenSSL'" -y
export OPENSSL_LIB_DIR="C:\OpenSSL\lib\VC\x64\MT"
export OPENSSL_INCLUDE_DIR="C:\OpenSSL\include"
;;
"macOS")
brew install libclang
;;
"Linux")
sudo apt update
sudo apt install -y libclang-dev
;;
*)
echo "Unknown Operating System"
;;
esac

0 comments on commit a3f8d50

Please sign in to comment.