Skip to content

Commit

Permalink
CI: Add a mindeps CI and set alembic min version to 1.8.5
Browse files Browse the repository at this point in the history
  • Loading branch information
mwestphal committed Jan 25, 2025
1 parent ddc9f1c commit 028cb89
Show file tree
Hide file tree
Showing 10 changed files with 105 additions and 13 deletions.
15 changes: 11 additions & 4 deletions .github/actions/alembic-install-dep/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,33 @@ inputs:
description: 'CPU architecture to build for'
required: false
default: 'x86_64'

version:
description: 'Version of alembic to build'
required: true

runs:
using: "composite"
steps:

# Alembic is part of VFX reference platform (CY2025: 1.8.x)
- name: Check required inputs
shell: bash
run: |
[[ "${{ inputs.version }}" ]] || { echo "version input is empty" ; exit 1; }
- name: Cache Alembic
id: cache-alembic
uses: actions/cache@v4
with:
path: dependencies/alembic_install
key: alembic-v1.8.8-${{runner.os}}-${{inputs.cpu}}-0
key: alembic-v${{inputs.version}}-${{runner.os}}-${{inputs.cpu}}-0

- name: Checkout Alembic
if: steps.cache-alembic.outputs.cache-hit != 'true'
uses: actions/checkout@v4
with:
repository: alembic/alembic
path: './dependencies/alembic'
ref: 1.8.8
ref: ${{inputs.version}}

- name: Setup Alembic
if: steps.cache-alembic.outputs.cache-hit != 'true'
Expand Down
4 changes: 4 additions & 0 deletions .github/actions/coverage-ci/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ inputs:
description: 'Codecov token, needed for non-forked workflows'
required: false
default: ''
alembic_version:
description: 'Version of alembic to build'
required: true

runs:
using: "composite"
Expand All @@ -29,6 +32,7 @@ runs:
uses: ./source/.github/actions/generic-dependencies
with:
raytracing_label: raytracing
alembic_version: ${{inputs.alembic_version}}

- name: Install VTK dependency
uses: ./source/.github/actions/vtk-install-dep
Expand Down
4 changes: 4 additions & 0 deletions .github/actions/f3d-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ inputs:
description: 'CPU architecture to build for'
required: false
default: 'x86_64'
alembic_version:
description: 'Version of alembic to build'
required: true

runs:
using: "composite"
Expand Down Expand Up @@ -45,6 +48,7 @@ runs:
uses: ./source/.github/actions/alembic-install-dep
with:
cpu: ${{inputs.cpu}}
version: ${{inputs.alembic_version}}

- name: Install pybind11 dependency
uses: ./source/.github/actions/pybind11-install-dep
Expand Down
4 changes: 4 additions & 0 deletions .github/actions/generic-ci/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ inputs:
lfs_sha:
description: 'Cache LFS sha'
required: true
alembic_version:
description: 'Version of alembic to build'
required: true

runs:
using: "composite"
Expand All @@ -62,6 +65,7 @@ runs:
with:
cpu: ${{inputs.cpu}}
raytracing_label: ${{inputs.raytracing_label}}
alembic_version: ${{inputs.alembic_version}}

- name: Install VTK dependency
uses: ./source/.github/actions/vtk-install-dep
Expand Down
9 changes: 9 additions & 0 deletions .github/actions/generic-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,19 @@ inputs:
description: 'CPU architecture to build for'
required: false
default: 'x86_64'
alembic_version:
description: 'Version of alembic to build'
required: true

runs:
using: "composite"
steps:

- name: Check required inputs
shell: bash
run: |
[[ "${{ inputs.alembic_version }}" ]] || { echo "alembic_version input is empty" ; exit 1; }
- name: Dependencies Dir
shell: bash
working-directory: ${{github.workspace}}
Expand All @@ -42,3 +50,4 @@ runs:
uses: ./source/.github/actions/f3d-dependencies
with:
cpu: ${{inputs.cpu}}
alembic_version: ${{inputs.alembic_version}}
5 changes: 5 additions & 0 deletions .github/actions/python-ci/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ inputs:
python_version:
description: 'Python version'
required: true
alembic_version:
description: 'Version of alembic to build'
required: true

runs:
using: "composite"
Expand All @@ -26,6 +29,8 @@ runs:

- name: Install all F3D dependencies
uses: ./source/.github/actions/generic-dependencies
with:
alembic_version: ${{inputs.alembic_version}}

- name: Install VTK dependency
uses: ./source/.github/actions/vtk-install-dep
Expand Down
5 changes: 5 additions & 0 deletions .github/actions/sanitizer-ci/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ inputs:
lfs_sha:
description: 'Cache LFS sha'
required: true
alembic_version:
description: 'Version of alembic to build'
required: true

runs:
using: "composite"
Expand All @@ -31,6 +34,8 @@ runs:

- name: Install all F3D dependencies
uses: ./source/.github/actions/generic-dependencies
with:
alembic_version: ${{inputs.alembic_version}}

- name: Install VTK dependency
uses: ./source/.github/actions/vtk-install-dep
Expand Down
5 changes: 5 additions & 0 deletions .github/actions/static-analysis-ci/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ inputs:
lfs_sha:
description: 'Cache LFS sha'
required: true
alembic_version:
description: 'Version of alembic to build'
required: true

runs:
using: "composite"
Expand All @@ -24,6 +27,8 @@ runs:

- name: Install all F3D dependencies
uses: ./source/.github/actions/generic-dependencies
with:
alembic_version: ${{inputs.alembic_version}}

- name: Install VTK dependency
uses: ./source/.github/actions/vtk-install-dep
Expand Down
Loading

0 comments on commit 028cb89

Please sign in to comment.