This is an automated email from the ASF dual-hosted git repository. tqchen pushed a commit to branch crate-tvm-ffi-version-input in repository https://gitbox.apache.org/repos/asf/tvm-tirx.git
commit 49c3fe48edd4a37c0245b005dd3d094cb06dde32 Author: tqchen <[email protected]> AuthorDate: Fri Nov 13 23:45:47 2026 +0000 [CI] Let the crate publish take the tvm-ffi version as an input --- .github/workflows/publish_crate.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_crate.yml b/.github/workflows/publish_crate.yml index dbbe708d6..0dd39a791 100644 --- a/.github/workflows/publish_crate.yml +++ b/.github/workflows/publish_crate.yml @@ -29,6 +29,11 @@ on: required: false default: "" type: string + tvm_ffi_version: + description: "tvm-ffi release to depend on (empty: the release tag of the 3rdparty/tvm-ffi commit)" + required: false + default: "" + type: string publish_repository: description: "Where to publish after the crate is verified" required: true @@ -59,7 +64,7 @@ jobs: runs-on: ubuntu-latest outputs: sha: ${{ steps.source.outputs.sha }} - tvm_ffi_version: ${{ steps.ffi.outputs.version }} + tvm_ffi_version: ${{ inputs.tvm_ffi_version || steps.ffi.outputs.version }} steps: - name: Checkout source uses: actions/[email protected] @@ -82,12 +87,13 @@ jobs: # Resolve the registry version from the source gitlink, not the placeholder in its crate. - id: ffi name: Check the tvm-ffi release + if: ${{ inputs.tvm_ffi_version == '' }} uses: ./.github/actions/detect-tvm-ffi-version - name: Prepare matching release metadata shell: bash env: - TVM_FFI_VERSION: ${{ steps.ffi.outputs.version }} + TVM_FFI_VERSION: ${{ inputs.tvm_ffi_version || steps.ffi.outputs.version }} run: &prepare_release_metadata | uv pip install tomlkit setuptools-scm python ci/wheel/prepare_release_metadata.py --crate-version-from-tag "$RELEASE_TAG"
