Skip to content

Commit

Permalink
8342917: GHA: Intermittent build failure on Linux while downloading ant
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinrushforth committed Nov 4, 2024
1 parent 58cd76a commit ab43913
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/submit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ jobs:
BOOT_JDK_VERSION: "23"
BOOT_JDK_FILENAME: "jdk-23_linux-x64_bin.tar.gz"
BOOT_JDK_URL: "https://download.oracle.com/java/23/archive/jdk-23_linux-x64_bin.tar.gz"
ANT_DIR: "apache-ant-1.10.5"
ANT_FILENAME: "apache-ant-1.10.5.tar.gz"
ANT_URL: "https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.5-bin.tar.gz"
# ANT_DIR: "apache-ant-1.10.5"
# ANT_FILENAME: "apache-ant-1.10.5.tar.gz"
# ANT_URL: "https://archive.apache.org/dist/ant/binaries/apache-ant-1.10.5-bin.tar.gz"

steps:
- name: Checkout the source
Expand All @@ -93,8 +93,8 @@ jobs:
sudo apt-get install libgl1-mesa-dev libx11-dev libxxf86vm-dev libxt-dev pkg-config libgtk2.0-dev libgtk-3-dev libxtst-dev gcc-13 g++-13
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 100 --slave /usr/bin/g++ g++ /usr/bin/g++-13
mkdir -p "${HOME}/build-tools"
wget -O "${HOME}/build-tools/${ANT_FILENAME}" "${ANT_URL}"
tar -zxf "${HOME}/build-tools/${ANT_FILENAME}" -C "${HOME}/build-tools"
# wget -O "${HOME}/build-tools/${ANT_FILENAME}" "${ANT_URL}"
# tar -zxf "${HOME}/build-tools/${ANT_FILENAME}" -C "${HOME}/build-tools"
# FIXME: enable cache for boot JDK
# - name: Restore boot JDK from cache
Expand All @@ -118,9 +118,9 @@ jobs:
set -x
export JAVA_HOME="${HOME}/bootjdk/jdk-${BOOT_JDK_VERSION}"
echo "JAVA_HOME=${JAVA_HOME}" >> "${GITHUB_ENV}"
export ANT_HOME="${HOME}/build-tools/${ANT_DIR}"
echo "ANT_HOME=${ANT_HOME}" >> "${GITHUB_ENV}"
export PATH="$JAVA_HOME/bin:$ANT_HOME/bin:$PATH"
# export ANT_HOME="${HOME}/build-tools/${ANT_DIR}"
# echo "ANT_HOME=${ANT_HOME}" >> "${GITHUB_ENV}"
# export PATH="$JAVA_HOME/bin:$ANT_HOME/bin:$PATH"
env | sort
which java
java -version
Expand All @@ -132,15 +132,17 @@ jobs:
working-directory: jfx
run: |
set -x
export PATH="$JAVA_HOME/bin:$ANT_HOME/bin:$PATH"
# export PATH="$JAVA_HOME/bin:$ANT_HOME/bin:$PATH"
export PATH="$JAVA_HOME/bin:$PATH"
bash gradlew -version
bash gradlew --info all
- name: Run JavaFX headless tests
working-directory: jfx
run: |
set -x
export PATH="$JAVA_HOME/bin:$ANT_HOME/bin:$PATH"
# export PATH="$JAVA_HOME/bin:$ANT_HOME/bin:$PATH"
export PATH="$JAVA_HOME/bin:$PATH"
bash gradlew --info --continue -PTEST_ONLY=true test -x :web:test
Expand Down

0 comments on commit ab43913

Please sign in to comment.