Skip to content

Commit c9f6324

Browse files
Ensure artifact names are unique
1 parent a41c817 commit c9f6324

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/test-runner.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,15 @@ jobs:
116116
;;
117117
esac
118118
119-
# Create unique artifact name
119+
# Create unique artifact name per configuration
120120
ARTIFACT="lib_${{ inputs.backend }}_${BUILD_OS}_${ARCH}"
121121
if [[ "${{ inputs.backend }}" == "cuda" ]]; then
122-
ARTIFACT="${ARTIFACT}_${{ inputs.cuda_version }}"
122+
ARTIFACT="${ARTIFACT}_${{ inputs.cuda_version }}_${{ inputs.gpu_type }}"
123+
else
124+
ARTIFACT="${ARTIFACT}_${{ inputs.cpu_type }}"
123125
fi
124-
# Add run ID to make artifacts unique across workflow runs
125-
ARTIFACT="${ARTIFACT}_${{ github.run_id }}_${{ github.run_attempt }}"
126+
# Add torch version and run ID to ensure uniqueness
127+
ARTIFACT="${ARTIFACT}_torch${{ inputs.torch_version }}_${{ github.run_id }}_${{ github.run_attempt }}"
126128
127129
echo "build_runner=${BUILD_RUNNER}" >> $GITHUB_OUTPUT
128130
echo "test_runner=${TEST_RUNNER}" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)