Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Add a config.json file for deps versions #1968

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

Meakk
Copy link
Member

@Meakk Meakk commented Feb 4, 2025

No description provided.

@Meakk Meakk changed the title [DRAFT] CI: Try with json file CI: Add a config.json file for deps versions Feb 4, 2025
@Meakk Meakk requested a review from mwestphal February 4, 2025 22:30
@@ -29,6 +29,9 @@ inputs:
usd_version:
description: 'Version of usd to build'
required: false
vtk_version:
description: 'Version of vtk to build'
required: false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should have a default or be required

inputs:
vtk_version:
description: 'Version of vtk to build'
required: false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should have a default or be required

@@ -8,7 +8,6 @@ inputs:
vtk_version:
description: 'VTK version'
required: false
default: 'commit'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should have a default or be required

@@ -31,6 +31,9 @@ inputs:
usd_version:
description: 'Version of usd to build'
required: false
vtk_version:
description: 'Version of vtk to build'
required: false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should have a default or be required

@@ -7,7 +7,6 @@ inputs:
vtk_version:
description: 'VTK version'
required: false
default: 'commit'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should have a default or be required

shell: bash
run: echo "VTK_SHA_OR_TAG=${{inputs.vtk_version}}" >> $GITHUB_ENV
run: |
[[ "${{ inputs.vtk_version }}" ]] || { echo "vtk_version input is empty" ; exit 1; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check both in a single step ?

shell: bash
run: echo "VTK_SHA_OR_TAG=${{inputs.vtk_version}}" >> $GITHUB_ENV
run: |
[[ "${{ inputs.vtk_version }}" ]] || { echo "vtk_version input is empty" ; exit 1; }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check both in a single step

uses: ./source/.github/actions/default-versions
- name: Read JSON file
id: get_config
run: echo "config=$(jq -c . < ./source/.github/workflows/config.json)" >> $GITHUB_OUTPUT
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe its better to have a dedicated action read and provide individual var instead of using fromJson everywhere ?

#----------------------------------------------------------------------------
default_versions:
config_file:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I dont like this job name. config file are aleady a thing in f3d, lets avoid confusion.

"Alembic is part of VFX reference platform (CY2025: 1.8.x)",
"OpenEXR is part of VFX reference platform (CY2025: 3.3.x)",
"OpenVDB is part of VFX reference platform (CY2025: 12.x))",
"OpenVDB min version is not enforced by F3D code and missing from VTK code)",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"OpenVDB min version is not enforced by F3D code and missing from VTK code)",
"OpenVDB min version is not enforced by F3D code and missing from VTK code",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants