Skip to content

Commit

Permalink
github ci fix: macos use sudo for make install
Browse files Browse the repository at this point in the history
  • Loading branch information
d99kris committed Apr 27, 2024
1 parent d5443a2 commit be8eaa6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,11 @@ if [[ "${INSTALL}" == "1" ]]; then
if [ "${OS}" == "Linux" ]; then
cd build && sudo make install && cd .. || exiterr "install failed (linux), exiting."
elif [ "${OS}" == "Darwin" ]; then
cd build && make install && cd .. || exiterr "install failed (mac), exiting."
GHSUDO=""
if [[ "${GITHUB_ACTIONS}" == "true" ]]; then
GHSUDO="sudo"
fi
cd build && ${GHSUDO} make install && cd .. || exiterr "install failed (mac), exiting."
else
exiterr "install failed (unsupported os ${OS}), exiting."
fi
Expand Down

0 comments on commit be8eaa6

Please sign in to comment.