Skip to content

Commit

Permalink
try to fix windows ci
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixNumworks committed Sep 29, 2023
1 parent 87bc717 commit 65ed755
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion build/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,15 @@ install_binary_deps() {
case $OSTYPE in
linux*)
install_linux_binary_deps
install_python_deps
;;
darwin*)
install_macos_binary_deps
install_python_deps
;;
msys)
install_windows_binary_deps
install_windows_python_deps
;;
*)
echo "Unknown operating system $OSTYPE" >&2
Expand All @@ -44,6 +47,16 @@ install_python_deps() {
stringcase
}

install_windows_python_deps() {
python3 -m venv .venv
source .venv/Scripts/activate # Activate the virtual environment
pip install wheel # Ensure you have wheel installed
pip install lz4 --platform win_amd64 # Specify the platform name
pip install pyelftools --platform win_amd64 # Specify the platform name
pip install pypng --platform win_amd64 # Specify the platform name
pip install stringcase --platform win_amd64 # Specify the platform name
}

install_macos_binary_deps() {
if ! [ -x "$(command -v git)" ]; then
xcode-select --install
Expand Down Expand Up @@ -119,5 +132,4 @@ init_git_pre_push_hook() {
}

install_binary_deps
install_python_deps
init_git_pre_push_hook

0 comments on commit 65ed755

Please sign in to comment.