From 0c7332f6af6a6d14c2c64d4e5dc1c74f3a7eb257 Mon Sep 17 00:00:00 2001 From: hualxie Date: Fri, 16 Oct 2026 17:27:58 +0800 Subject: [PATCH 1/3] add ref selection --- .github/workflows/torch_c_dlpack.yml | 15 ++++++--------- addons/torch_c_dlpack_ext/README.md | 7 +++++++ 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/torch_c_dlpack.yml b/.github/workflows/torch_c_dlpack.yml index cd4afbd39..fdbd6c251 100644 --- a/.github/workflows/torch_c_dlpack.yml +++ b/.github/workflows/torch_c_dlpack.yml @@ -21,8 +21,9 @@ on: workflow_dispatch: inputs: branch: - description: "Branch or tag to publish (manual run)" + description: "Branch or tag to build" required: true + type: string jobs: build_wheels_linux: @@ -37,8 +38,7 @@ jobs: if: ${{ matrix.arch == 'x86_64'}} - uses: actions/checkout@v5 with: - repository: apache/tvm-ffi - ref: main + ref: ${{ inputs.branch }} fetch-depth: 0 submodules: recursive path: tvm-ffi @@ -76,8 +76,7 @@ jobs: steps: - uses: actions/checkout@v5 with: - repository: apache/tvm-ffi - ref: main + ref: ${{ inputs.branch }} fetch-depth: 0 submodules: recursive path: tvm-ffi @@ -104,8 +103,7 @@ jobs: steps: - uses: actions/checkout@v5 with: - repository: apache/tvm-ffi - ref: main + ref: ${{ inputs.branch }} fetch-depth: 0 submodules: recursive path: tvm-ffi @@ -123,8 +121,7 @@ jobs: steps: - uses: actions/checkout@v5 with: - repository: apache/tvm-ffi - ref: main + ref: ${{ inputs.branch }} fetch-depth: 0 submodules: recursive path: tvm-ffi diff --git a/addons/torch_c_dlpack_ext/README.md b/addons/torch_c_dlpack_ext/README.md index a3ac58c01..0d48c9c04 100644 --- a/addons/torch_c_dlpack_ext/README.md +++ b/addons/torch_c_dlpack_ext/README.md @@ -27,3 +27,10 @@ to run JIT-compilation. ```bash pip install torch-c-dlpack-ext ``` + +## Release ref selection + +The manually triggered `.github\workflows\torch_c_dlpack.yml` release workflow uses +the required `branch` input to select the branch or tag to build. All wheel and +source build jobs check out that ref from the repository where the workflow runs, +not a hardcoded upstream repository or `main` branch. From 876bdadf7a3588ae7aa9b4ef0af781684377e753 Mon Sep 17 00:00:00 2001 From: hualxie Date: Mon, 19 Oct 2026 10:34:33 +0800 Subject: [PATCH 2/3] revert --- addons/torch_c_dlpack_ext/README.md | 7 ------- 1 file changed, 7 deletions(-) diff --git a/addons/torch_c_dlpack_ext/README.md b/addons/torch_c_dlpack_ext/README.md index 0d48c9c04..a3ac58c01 100644 --- a/addons/torch_c_dlpack_ext/README.md +++ b/addons/torch_c_dlpack_ext/README.md @@ -27,10 +27,3 @@ to run JIT-compilation. ```bash pip install torch-c-dlpack-ext ``` - -## Release ref selection - -The manually triggered `.github\workflows\torch_c_dlpack.yml` release workflow uses -the required `branch` input to select the branch or tag to build. All wheel and -source build jobs check out that ref from the repository where the workflow runs, -not a hardcoded upstream repository or `main` branch. From be7e74b70798a828b89c6c2d58ff30ecb8e281c7 Mon Sep 17 00:00:00 2001 From: hualxie Date: Mon, 19 Oct 2026 10:36:20 +0800 Subject: [PATCH 3/3] revert --- .github/workflows/torch_c_dlpack.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/torch_c_dlpack.yml b/.github/workflows/torch_c_dlpack.yml index fdbd6c251..f9fb8413d 100644 --- a/.github/workflows/torch_c_dlpack.yml +++ b/.github/workflows/torch_c_dlpack.yml @@ -21,7 +21,7 @@ on: workflow_dispatch: inputs: branch: - description: "Branch or tag to build" + description: "Branch or tag to publish (manual run)" required: true type: string