runner-images icon indicating copy to clipboard operation
runner-images copied to clipboard

ANT_HOME not set in windows images, but does get set in linux.

Open qwelyt opened this issue 2 years ago • 1 comments

Description

https://github.com/actions/runner-images/blob/main/images/win/scripts/Installers/Install-JavaTools.ps1 This script for windows does not set ANT_HOME, but a look at the Linux equivalent over at https://github.com/actions/runner-images/blob/main/images/linux/scripts/installers/java-tools.sh#L137 shows that the environment variable gets set (gradles variables get set at well on Linux but not Windows).

I would expect Windows to have the variables set as well. The lack of the variables set means that my current windows build for at project fails.

Platforms affected

  • [ ] Azure DevOps
  • [X] GitHub Actions - Standard Runners
  • [ ] GitHub Actions - Larger Runners

Runner images affected

  • [ ] Ubuntu 18.04
  • [ ] Ubuntu 20.04
  • [ ] Ubuntu 22.04
  • [ ] macOS 10.15
  • [ ] macOS 11
  • [ ] macOS 12
  • [X] Windows Server 2019
  • [X] Windows Server 2022

Image version and build link

https://github.com/qwelyt/opencv/actions/runs/3530511990/jobs/5922582505#step:5:699

Is it regression?

Don't know.

Expected behavior

That ANT_HOME gets set.

Actual behavior

ANT_HOME is not set in windows runners, but are set in Linux runners.

Repro steps

Use a windows runner and echo ANT_HOME. It does not exist.

qwelyt avatar Nov 23 '22 10:11 qwelyt

Hi @qwelyt thank you, we will take a look.

igorboskovic3 avatar Nov 23 '22 10:11 igorboskovic3

Hi @qwelyt , it seems that we have ANT_HOME on both images.

image

image

image

Feel free to reach us if you have more questions.

igorboskovic3 avatar Nov 24 '22 09:11 igorboskovic3