Skip to content

Commit

Permalink
ci: moar attempts
Browse files Browse the repository at this point in the history
  • Loading branch information
easye committed Mar 12, 2024
1 parent decd0fa commit 15bee9c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions ci/ensure-jenv-is-present.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env bash

export JENV_ROOT=$HOME/.jenv
if [[ $(echo $PATH | grep -c .jenv) -eq 0 ]]; then
export PATH="$JENV_ROOT/bin:$PATH"
Expand Down
2 changes: 1 addition & 1 deletion ci/install-jenv.bash
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ fi
# jenv enable-plugin maven
# jenv enable-plugin export

jenv doctor
#jenv doctor



Expand Down
7 changes: 3 additions & 4 deletions ci/install-openjdk.bash
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,16 @@
set -euo pipefail
DIR="$(cd -P "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

. ${DIR}/install-jenv.bash
# try this...
. ${DIR}/ensure-jenv-is-present.bash

jdk=$1
if [[ -z $jdk ]]; then
jdk=openjdk8
fi

uname=$2
if [[ -z $uname ]]; then
if [[ $# -eq 2 ]]; then
uname=$2
else
uname=$(uname)
fi

Expand Down
4 changes: 3 additions & 1 deletion ci/set-jdk.bash
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ function set_jdk() {
openjdk20)
version=$(jenv versions | grep ^\ *20\.[0-9] | tail -1 | sed s/*//)
;;
openjdk21)
version=$(jenv versions | grep ^\ *21\.[0-9] | tail -1 | sed s/*//)
;;
*)
echo Failed to find an available JDK matching ${abcl_jdk}
echo in $(jenv versions)
Expand Down Expand Up @@ -63,4 +66,3 @@ function set_jdk() {
popd
}

set_jdk ${ABCL_JDK} ${ABCL_ROOT}

0 comments on commit 15bee9c

Please sign in to comment.