runner-images
runner-images copied to clipboard
ANT_HOME not set in windows images, but does get set in linux.
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.
Hi @qwelyt thank you, we will take a look.
Hi @qwelyt , it seems that we have ANT_HOME on both images.
Feel free to reach us if you have more questions.