From c361ad8f752af8a6e0a30b3299937b7a86c3244a Mon Sep 17 00:00:00 2001 From: Leo Fang Date: Sun, 8 Dec 2024 04:13:46 +0000 Subject: [PATCH] propagate cuda-version --- .github/actions/test/action.yml | 4 ++-- .github/workflows/gh-build-and-test.yml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml index e013b1d2..2703af16 100644 --- a/.github/actions/test/action.yml +++ b/.github/actions/test/action.yml @@ -46,8 +46,8 @@ runs: - name: Set up CTK cache variable shell: bash --noprofile --norc -xeuo pipefail {0} run: | - echo "CTK_CACHE_KEY=mini-ctk-${{ inputs.cuda-version }}" >> $GITHUB_ENV - echo "CTK_CACHE_FILENAME=mini-ctk-${{ inputs.cuda-version }}.tar.gz" >> $GITHUB_ENV + echo "CTK_CACHE_KEY=mini-ctk-${CTK_BUILD_VER}" >> $GITHUB_ENV + echo "CTK_CACHE_FILENAME=mini-ctk-${CTK_BUILD_VER}.tar.gz" >> $GITHUB_ENV - name: Download CTK cache id: ctk-get-cache diff --git a/.github/workflows/gh-build-and-test.yml b/.github/workflows/gh-build-and-test.yml index d8dce525..556c47f2 100644 --- a/.github/workflows/gh-build-and-test.yml +++ b/.github/workflows/gh-build-and-test.yml @@ -120,3 +120,4 @@ jobs: CUDA_BINDINGS_ARTIFACT_NAME: ${{ needs.build.outputs.CUDA_BINDINGS_ARTIFACT_NAME }} CUDA_BINDINGS_ARTIFACTS_DIR: ${{ needs.build.outputs.CUDA_BINDINGS_ARTIFACTS_DIR }} PYTHON_VERSION: ${{ inputs.python-version }} + CTK_BUILD_VER: ${{ inputs.cuda-version }}