Skip to content

Commit

Permalink
Override javacpp platform with env var
Browse files Browse the repository at this point in the history
  • Loading branch information
gliwka committed May 6, 2021
1 parent c9f7ae1 commit b0d5c9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ cd ../..
# only deploy with deploy command line param on master with clean working area
if [ $# -gt 0 ] && [ $1 = "deploy" ] && [ "$(git symbolic-ref HEAD)" = "refs/heads/main" ] && [ -z "$(git status --porcelain)" ]
then
mvn -B --settings mvnsettings.xml deploy
mvn -B -Dorg.bytedeco.javacpp.platform=$DETECTED_PLATFORM --settings mvnsettings.xml deploy
else
mvn -B install
mvn -B -Dorg.bytedeco.javacpp.platform=$DETECTED_PLATFORM install
fi

0 comments on commit b0d5c9a

Please sign in to comment.