Skip to content

Commit

Permalink
ci: downgrade clang-tidy ubuntu version
Browse files Browse the repository at this point in the history
needs this workaround till ours is bumped
  • Loading branch information
scarf005 committed Sep 20, 2024
1 parent af37ac8 commit ee84816
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions build-scripts/requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,19 @@ if [[ "$LIBBACKTRACE" == "1" ]]; then
)
fi

# needed for newer ubuntu versions
# https://stackoverflow.com/questions/75608323/how-do-i-solve-error-externally-managed-environment-every-time-i-use-pip-3
if [[ $(bc <<< "$(lsb_release -rs) > 22.04") -eq 1 ]]; then
PIP_FLAGS="--break-system-packages"
fi

if [ -n "$CATA_CLANG_TIDY" ]; then
pip install --user wheel
pip install --user 'lit==0.11.1' 'click==7.1.2'
pip install --user wheel --upgrade $PIP_FLAGS
pip install --user 'lit==0.11.1' 'click==7.1.2' $PIP_FLAGS
fi

if [ -n "$LANGUAGES" ]; then
pip install --user polib luaparser --break-system-packages
pip install --user polib luaparser $PIP_FLAGS
fi

# Influenced by https://github.com/zer0main/battleship/blob/master/build/windows/requirements.sh
Expand Down

0 comments on commit ee84816

Please sign in to comment.