Skip to content

Commit 3b9c726

Browse files
committed
Use correct artifact name
This was failing on rocky linux because I think it was pulling the wrong artifact. The tests don't do anything so this isn't strictly needed.
1 parent 87027cc commit 3b9c726

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/ci_linux.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,14 +253,23 @@ jobs:
253253
image: "ghcr.io/rust-gpu/rust-cuda-rockylinux9-cuda12:latest"
254254
runner: ubuntu-latest
255255
steps:
256+
- name: Compute artifact name
257+
id: test_artifact
258+
run: |
259+
SANITIZED_NAME=$(echo '${{ matrix.variance.name }}' | sed 's/[^a-zA-Z0-9.-]/-/g')
260+
ARTIFACT_NAME="target_debug-${SANITIZED_NAME}-${{ github.run_id }}"
261+
ARTIFACT_PATH="target/debug"
262+
echo "name=${ARTIFACT_NAME}" >> $GITHUB_OUTPUT
263+
echo "path=${ARTIFACT_PATH}" >> $GITHUB_OUTPUT
264+
256265
- name: Download build artifacts
257266
uses: actions/download-artifact@v4
258267
with:
259-
name: ${{ needs.build.outputs.artifact_name }}
260-
path: ${{ needs.build.outputs.artifact_path }}
268+
name: ${{ steps.test_artifact.outputs.name }}
269+
path: ${{ steps.test_artifact.outputs.path }}
261270

262271
- name: List downloaded files
263-
run: ls -lR ${{ needs.build.outputs.artifact_path }}
272+
run: ls -lR ${{ steps.test_artifact.outputs.path }}
264273

265274
- name: Run remote tests
266275
env:

0 commit comments

Comments
 (0)