Several steps in the Windows CI workflows are duplicated per architecture 
(x86.x64 / ARM64) where a single step with conditional expressions would 
suffice.

Changes:

- `action.yml`: Merge the two MSYS2 install steps and two path steps into one 
of each, using expressions for release and location.
- `build-windows.yml`: Merge the two toolchain check steps into one 
(conditional on bat file name), and merge the two toolchain install steps into 
one (component suffix already matches `inputs.architecture`).

This reduces duplication and makes future architecture additions simpler.

---------
- [x] I confirm that I make this contribution in accordance with the [OpenJDK 
Interim AI Policy](https://openjdk.org/legal/ai).

-------------

Commit messages:
 - 8385856: GHA: Consolidate architecture-specific steps in Windows CI workflows

Changes: https://git.openjdk.org/jdk/pull/31364/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=31364&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8385856
  Stats: 55 lines in 2 files changed: 1 ins; 38 del; 16 mod
  Patch: https://git.openjdk.org/jdk/pull/31364.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/31364/head:pull/31364

PR: https://git.openjdk.org/jdk/pull/31364

Reply via email to