Skip to content

Commit

Permalink
Redesign GitHub action matrix to support Java 11 as well
Browse files Browse the repository at this point in the history
  • Loading branch information
mikir committed Dec 6, 2023
1 parent 7efa3a7 commit d66ab57
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,21 @@ jobs:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: ["ubuntu-20.04", "ubuntu-22.04"]
os: ["ubuntu-20.04"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
java-version: ["8"]
include:
- os: "ubuntu-20.04"
clang-version-suffix: "-11"
- os: "ubuntu-20.04"
python-version: "3.8"
java-version: "11"
clang-version-suffix: "-11"
- os: "ubuntu-22.04"
python-version: "3.8"
java-version: "8"
clang-version-suffix: "-14"
name: OS ${{matrix.os}}, Python ${{matrix.python-version}}, Java ${{matrix.java-version}}
env:
CPPCHECK_HOME: "${{github.workspace}}/cppcheck-2.6"
SPOTBUGS_HOME: "${{github.workspace}}/spotbugs-4.8.2"
Expand All @@ -34,11 +42,11 @@ jobs:
with:
submodules: recursive

- name: Set up JDK 1.8
- name: Set up Java ${{matrix.java-version}}
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8
java-version: ${{matrix.java-version}}

- name: Set up Python ${{matrix.python-version}}
uses: actions/setup-python@v4
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,14 @@ jobs:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: ["windows-latest"]
os: ["windows-2022"]
python-version: ["3.8", "3.9", "3.10", "3.11"]
java-version: ["8"]
include:
- os: "windows-2022"
python-version: "3.8"
java-version: "11"
name: OS ${{matrix.os}}, Python ${{matrix.python-version}}, Java ${{matrix.java-version}}
env:
CPPCHECK_HOME: "/c/Program Files/Cppcheck"
SPOTBUGS_HOME: "${{github.workspace}}/spotbugs-4.8.2"
Expand All @@ -29,11 +35,11 @@ jobs:
with:
submodules: recursive

- name: Set up JDK 1.8
- name: Set up Java ${{matrix.java-version}}
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 8
java-version: ${{matrix.java-version}}

- name: Convert environment variables to POSIX paths
run: |
Expand Down

0 comments on commit d66ab57

Please sign in to comment.