Skip to content

Commit

Permalink
ci: test various java distribution on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Sep 4, 2024
1 parent 66244a7 commit 0b1eb71
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/amd64_windows_cmake_java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,42 @@ jobs:
cmake: [
{generator: "Visual Studio 17 2022", config: Release, build_target: ALL_BUILD, test_target: RUN_TESTS, install_target: INSTALL},
]
cmake: [
# see https://endoflife.date/azul-zulu
{distrib: 'zulu', version: '8'}, # 2030/12
{distrib: 'zulu', version: '11'}, # 2026/09
{distrib: 'zulu', version: '17'}, # 2029/09
{distrib: 'zulu', version: '21'}, # 2031/09
# see https://endoflife.date/eclipse-temurin
{distrib: 'temurin', version: '8'}, # 2026/11
{distrib: 'temurin', version: '11'}, # 2027/10
{distrib: 'temurin', version: '17'}, # 2027/10
{distrib: 'temurin', version: '21'}, # 2029/12
# see https://endoflife.date/microsoft-build-of-openjdk
{distrib: 'microsoft', version: '11'}, # 2027/09
{distrib: 'microsoft', version: '17'}, # 2027/09
{distrib: 'microsoft', version: '21'}, # 2028/09
]
fail-fast: false
name: Windows • ${{ matrix.cmake.generator }} • Java
name: Windows • ${{ matrix.cmake.generator }} • ${{ matrix.java.distrib }}-${{ matrix.java.version }}
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: ${{ matrix.java.distrib }}
java-version: ${{ matrix.java.version }}
- name: Check java
run: |
java -version
mvn --version
- name: Install SWIG 4.2.1
run: |
(New-Object System.Net.WebClient).DownloadFile("http://prdownloads.sourceforge.net/swig/swigwin-4.2.1.zip","swigwin-4.2.1.zip");
Expand-Archive .\swigwin-4.2.1.zip .;
echo "$((Get-Item .).FullName)/swigwin-4.2.1" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Check swig
run: swig -version
- name: Check java
run: java -version
- name: Check cmake
run: cmake --version
- name: Configure
Expand Down

0 comments on commit 0b1eb71

Please sign in to comment.