Skip to content

Commit

Permalink
Fix artifact name
Browse files Browse the repository at this point in the history
  • Loading branch information
blozano-tt committed Feb 12, 2025
1 parent 944bf81 commit 4496254
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/build-artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ on:
#ci-test-docker-image:
# description: "Docker tag for the CI Test Docker image for testing TT-Metalium et al"
# value: ${{ jobs.build-docker-image.outputs.ci-test-tag }}
artifact-name:
description: "Name of the published artifact"
value: ${{ steps.set_artifact_name.outputs.artifact_name }}


workflow_dispatch:
Expand Down Expand Up @@ -213,11 +216,18 @@ jobs:
if: ${{ inputs.publish-artifact }}
run: tar -cvhf /work/ttm_any.tar ttnn/ttnn/*.so build/lib ttnn/ttnn/*.so build/programming_examples build/test build/tools build/tt-train data runtime

- name: Set artifact name
id: set_artifact_name
run: |
ARTIFACT_NAME="TTMetal_build_any${{ (inputs.tracy && '_profiler') || '' }}"
echo "artifact_name=$ARTIFACT_NAME" >> "$GITHUB_ENV"
echo "artifact_name=$ARTIFACT_NAME" >> "$GITHUB_OUTPUT"
- name: ☁️ Upload tarball
if: ${{ inputs.publish-artifact }}
uses: actions/upload-artifact@v4
with:
name: TTMetal_build_any${{ (inputs.tracy && '_profiler') || '' }}
name: ${{ env.artifact_name }}
path: /work/ttm_any.tar
if-no-files-found: error

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/perf-device-models-impl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
docker-image:
required: true
type: string
artifact-name:
required: true
type: string

jobs:
device-perf:
Expand Down Expand Up @@ -49,7 +52,7 @@ jobs:

- uses: actions/download-artifact@v4
with:
name: TTMetal_build_any
name: ${{ inputs.artifact-name }}
path: docker-job

- name: Extract files
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/perf-device-models.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ jobs:
uses: ./.github/workflows/perf-device-models-impl.yaml
with:
docker-image: ${{ needs.build-artifact-profiler.outputs.ci-build-docker-image }}
artifact-name: ${{ needs.build-artifact-profiler.outputs.artifact-name }}

0 comments on commit 4496254

Please sign in to comment.