build: improve build.py and env.py scripts

Modernize build scripts and improve reliability across environments:
- Update required Java toolchain to JDK 25 across scripts and CI
- Propagate subprocess exit codes and report filesystem errors
- Fix argument parsing edge cases and dynamic linker path handling
- Anchor working directory and improve terminal output formatting

Assisted-by: Gemini 3.8 Flash
This commit is contained in:
topjohnwu
2026-09-05 08:17:11 +00:00
parent 96221b69fa
commit 173153fcc7
3 changed files with 117 additions and 66 deletions
+2 -2
View File
@@ -7,11 +7,11 @@ inputs:
runs:
using: "composite"
steps:
- name: Set up JDK 21
- name: Set up JDK 25
uses: actions/setup-java@v5
with:
distribution: "temurin"
java-version: "21"
java-version: "25"
- name: Set up Python 3
uses: actions/setup-python@v6