Skip to content

Commit b0793eb

Browse files
authored
Update prepare-ci.sh
1 parent 46eefae commit b0793eb

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

tools/prepare-ci.sh

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
#!/bin/bash
22

3-
# Ubuntu setup
4-
# Change in archive-build.sh gawk to awk
5-
#sudo apt update && sudo apt install -y gperf cmake ninja-build ccache
6-
#pip3 install wheel future pyelftools
7-
8-
# MacOS (ARM) setup
9-
# Change in archive-build.sh awk to gawk
10-
brew install gsed
11-
brew install gawk
12-
brew install gperf
13-
#brew install ninja
14-
brew install ccache
15-
python -m pip install uv
16-
uv venv
17-
uv pip install future pyelftools
3+
if [[ "$OSTYPE" == "darwin"* ]]; then
4+
echo "macOS OS detected. Install dependencies..."
5+
brew install gsed || true
6+
brew install gawk || true
7+
brew install gperf || true
8+
brew install ninja || true
9+
brew install ccache || true
10+
brew install 7zip || true
11+
python3 -m pip install uv
12+
uv venv
13+
uv pip install future pyelftools
14+
else
15+
echo "Linux detected. Install dependencies..."
16+
sudo apt update && sudo apt install -y gperf cmake ninja-build ccache p7zip-full
17+
pip3 install wheel future pyelftools
18+
fi

0 commit comments

Comments
 (0)