diff --git a/.github/workflows/ant.yml b/.github/workflows/ant.yml new file mode 100644 index 0000000..d40610a --- /dev/null +++ b/.github/workflows/ant.yml @@ -0,0 +1,27 @@ +# This workflow will build a Java project with Ant +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-ant + +name: Java CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest] + steps: + - uses: actions/checkout@v3 + - name: Set up JDK 9 + uses: actions/setup-java@v3 + with: + java-version: '9' + distribution: 'adopt' + - name: Build with Ant + run: ant -noinput -buildfile build.xml makedistrib diff --git a/build.xml b/build.xml index 23189b5..9eabf52 100644 --- a/build.xml +++ b/build.xml @@ -98,6 +98,7 @@ + diff --git a/conf/scripts/get_ip_release.sh b/conf/scripts/get_ip_release.sh index 9f2c74e..c863d41 100755 --- a/conf/scripts/get_ip_release.sh +++ b/conf/scripts/get_ip_release.sh @@ -14,8 +14,8 @@ echo "Getting Interpro release number" # ======================================================================================== # Section: include API -S_NAME=$(realpath "$0") -[[ -z "$BDM_CONF_SCRIPTS" ]] && script_dir=$(dirname "$S_NAME") || script_dir=$BDM_CONF_SCRIPTS +S_NAME=$( cd -P -- "$(dirname -- "$(command -v -- "$0")")" && pwd -P ) +[[ -z "$BDM_CONF_SCRIPTS" ]] && script_dir=$S_NAME || script_dir=$BDM_CONF_SCRIPTS . $script_dir/scheduler/common.sh # ========================================================================================