Skip to content

Commit

Permalink
CI: Add Java 17 to mindeps
Browse files Browse the repository at this point in the history
  • Loading branch information
mwestphal committed Jan 26, 2025
1 parent b79044b commit 9abeb9a
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 7 deletions.
6 changes: 0 additions & 6 deletions .github/actions/f3d-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ runs:
using: "composite"
steps:

- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'

- name: Install OCCT dependency
uses: ./source/.github/actions/occt-install-dep
with:
Expand Down
10 changes: 10 additions & 0 deletions .github/actions/generic-ci/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ inputs:
usd_version:
description: 'Version of usd to build'
required: true
java_version:
description: 'Version of java to install'
required: true

runs:
using: "composite"
Expand All @@ -77,6 +80,7 @@ runs:
run: |
[[ "${{ inputs.lfs_sha }}" ]] || { echo "lfs_sha input is empty" ; exit 1; }
[[ "${{ inputs.python_version }}" ]] || { echo "python_version input is empty" ; exit 1; }
[[ "${{ inputs.java_version }}" ]] || { echo "java_version input is empty" ; exit 1; }
- name: Recover LFS Data
uses: f3d-app/lfs-data-cache-action@v1
Expand Down Expand Up @@ -121,6 +125,12 @@ runs:
python -m pip install pytest==8.0.0
python -m pip install pybind11_stubgen
- name: Setup JDK
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{inputs.java_version}}

- name: Setup Directories
shell: bash
working-directory: ${{github.workspace}}
Expand Down
17 changes: 16 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
python_min_version: ${{ steps.set_default_versions.outputs.python_min_version }}
usd_version: ${{ steps.set_default_versions.outputs.usd_version }}
usd_min_version: ${{ steps.set_default_versions.outputs.usd_min_version }}
java_version: ${{ steps.set_default_versions.outputs.java_version }}
java_min_version: ${{ steps.set_default_versions.outputs.java_min_version }}
steps:

# Alembic is part of VFX reference platform (CY2025: 1.8.x)
Expand Down Expand Up @@ -67,6 +69,8 @@ jobs:
echo "python_min_version=3.9" >> $GITHUB_OUTPUT
echo "usd_version=v24.11" >> $GITHUB_OUTPUT
echo "usd_min_version=v24.08" >> $GITHUB_OUTPUT
echo "java_version=21" >> $GITHUB_OUTPUT
echo "java_min_version=17" >> $GITHUB_OUTPUT
#----------------------------------------------------------------------------
# Cache LFS: Checkout LFS data and update the cache to limit LFS bandwidth
Expand Down Expand Up @@ -193,6 +197,7 @@ jobs:
pybind11_version: ${{needs.default_versions.outputs.pybind11_version}}
python_version: ${{needs.default_versions.outputs.python_version}}
usd_version: ${{needs.default_versions.outputs.usd_version}}
java_version: ${{needs.default_versions.outputs.java_version}}

#----------------------------------------------------------------------------
# Linux CI: Build and test, cross-vtk build matrix
Expand All @@ -219,8 +224,9 @@ jobs:
- openexr_version: ${{needs.default_versions.outputs.openexr_version}}
- openvdb_version: ${{needs.default_versions.outputs.openvdb_version}}
- pybind11_version: ${{needs.default_versions.outputs.pybind11_version}}
- usd_version: ${{needs.default_versions.outputs.usd_version}}
- python_version: ${{needs.default_versions.outputs.python_version}}
- usd_version: ${{needs.default_versions.outputs.usd_version}}
- java_version: ${{needs.default_versions.outputs.java_version}}
- build_type: egl
vtk_version: commit
raytracing_label: raytracing
Expand All @@ -237,6 +243,7 @@ jobs:
pybind11_version: ${{needs.default_versions.outputs.pybind11_version}}
python_version: ${{needs.default_versions.outputs.python_version}}
usd_version: ${{needs.default_versions.outputs.usd_version}}
java_version: ${{needs.default_versions.outputs.java_version}}
- build_type: osmesa
vtk_version: commit
raytracing_label: raytracing
Expand All @@ -253,6 +260,7 @@ jobs:
pybind11_version: ${{needs.default_versions.outputs.pybind11_version}}
python_version: ${{needs.default_versions.outputs.python_version}}
usd_version: ${{needs.default_versions.outputs.usd_version}}
java_version: ${{needs.default_versions.outputs.java_version}}
- build_type: exclude_deprecated
vtk_version: commit
raytracing_label: raytracing
Expand All @@ -269,6 +277,7 @@ jobs:
pybind11_version: ${{needs.default_versions.outputs.pybind11_version}}
python_version: ${{needs.default_versions.outputs.python_version}}
usd_version: ${{needs.default_versions.outputs.usd_version}}
java_version: ${{needs.default_versions.outputs.java_version}}
- build_type: no_optional_deps
vtk_version: commit
raytracing_label: no-raytracing
Expand All @@ -285,6 +294,7 @@ jobs:
pybind11_version: ${{needs.default_versions.outputs.pybind11_version}}
python_version: ${{needs.default_versions.outputs.python_version}}
usd_version: ${{needs.default_versions.outputs.usd_version}}
java_version: ${{needs.default_versions.outputs.java_version}}
- build_type: static_libs
vtk_version: commit
raytracing_label: no-raytracing
Expand All @@ -301,6 +311,7 @@ jobs:
pybind11_version: ${{needs.default_versions.outputs.pybind11_version}}
python_version: ${{needs.default_versions.outputs.python_version}}
usd_version: ${{needs.default_versions.outputs.usd_version}}
java_version: ${{needs.default_versions.outputs.java_version}}
- build_type: mindeps
vtk_version: commit
raytracing_label: raytracing
Expand All @@ -317,6 +328,7 @@ jobs:
pybind11_version: ${{needs.default_versions.outputs.pybind11_min_version}}
python_version: ${{needs.default_versions.outputs.python_min_version}}
usd_version: ${{needs.default_versions.outputs.usd_min_version}}
java_version: ${{needs.default_versions.outputs.java_min_version}}

runs-on: ubuntu-22.04
container: ghcr.io/f3d-app/f3d-ci
Expand Down Expand Up @@ -352,6 +364,7 @@ jobs:
pybind11_version: ${{matrix.pybind11_version}}
python_version: ${{matrix.python_version}}
usd_version: ${{matrix.usd_version}}
java_version: ${{matrix.java_version}}

#----------------------------------------------------------------------------
# MacOS CI: Build and test, cross-vtk build matrix
Expand Down Expand Up @@ -390,6 +403,7 @@ jobs:
pybind11_version: ${{needs.default_versions.outputs.pybind11_version}}
python_version: ${{needs.default_versions.outputs.python_version}}
usd_version: ${{needs.default_versions.outputs.usd_version}}
java_version: ${{needs.default_versions.outputs.java_version}}

#----------------------------------------------------------------------------
# MacOS ARM CI: Build and test, cross-vtk build matrix with a few optional builds
Expand Down Expand Up @@ -440,6 +454,7 @@ jobs:
pybind11_version: ${{needs.default_versions.outputs.pybind11_version}}
python_version: ${{needs.default_versions.outputs.python_version}}
usd_version: ${{needs.default_versions.outputs.usd_version}}
java_version: ${{needs.default_versions.outputs.java_version}}

#----------------------------------------------------------------------------
# Python packaging: Build and test the Python wheel
Expand Down

0 comments on commit 9abeb9a

Please sign in to comment.