-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: update openjdk installations to latest
Stop depending on the GitHub installed CI Java. It used to be that with GitHub actions/setup-java@v1 we could Ant installed but use jenv to use our "own" openjdk to run it. Something changed, debugging the GitHub CI via multiple pull requests is tedious, so just try to use GitHub for any dependencies beyond bash. Robustify syntax for specifying operating system and architecture to install-openjdk.
- Loading branch information
Showing
6 changed files
with
78 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
export JENV_ROOT=$HOME/.jenv | ||
if [[ $(echo $PATH | grep -c .jenv) -eq 0 ]]; then | ||
export PATH="$JENV_ROOT/bin:$PATH" | ||
fi | ||
|
||
eval "$(jenv init -)" | ||
eval "$(jenv enable-plugin export)" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
|
||
tmpdir=/tmp | ||
pushd "${tmpdir}" | ||
ant_base=apache-ant-1.10.14 | ||
wget https://www-eu.apache.org/dist/ant/binaries/${ant_base}-bin.zip | ||
unzip ${tmpdir}/${ant_base}-bin.zip | ||
popd | ||
|
||
install_dir="$HOME/.local/share/java" | ||
mkdir -p "${install_dir}" | ||
mv ${tmpdir}/${ant_base} "${install_dir}/apache-ant" | ||
|
||
echo Ant binary installed in "${install_dir}/apache-ant/bin" | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters