source: trunk/abcl/ci/install-ant.bash

Last change on this file was 15783, checked in by Mark Evenson, 5 weeks ago

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.

File size: 374 bytes
Line 
1#!/usr/bin/env bash
2
3
4tmpdir=/tmp
5pushd "${tmpdir}"
6ant_base=apache-ant-1.10.14
7wget https://www-eu.apache.org/dist/ant/binaries/${ant_base}-bin.zip
8unzip ${tmpdir}/${ant_base}-bin.zip
9popd 
10
11install_dir="$HOME/.local/share/java"
12mkdir -p "${install_dir}"
13mv ${tmpdir}/${ant_base} "${install_dir}/apache-ant"
14
15echo Ant binary installed in "${install_dir}/apache-ant/bin"
16
17
18
Note: See TracBrowser for help on using the repository browser.