Skip to content

Commit 88cdf73

Browse files
committed
ci: Artifact as .tar.gz
1 parent a30e655 commit 88cdf73

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,17 @@ jobs:
6767
PLATFORM=${{ env.PLATFORM }}
6868
tags: ${{ steps.meta.outputs.tags || steps.meta-pr.outputs.tags }}
6969
labels: ${{ steps.meta.outputs.labels || steps.meta-pr.outputs.labels }}
70-
- name: Extract binary from Docker
70+
- name: Extract binary from Docker and tar.gz
7171
if: ${{ github.event_name != 'pull_request' }}
7272
run: |
7373
docker create --name extract ghcr.io/huggingface/inference-benchmarker:sha-${{ env.GITHUB_SHA_SHORT }}
7474
docker cp extract:/usr/local/bin/inference-benchmarker ${{ github.workspace }}/inference-benchmarker
7575
docker rm -f extract
76+
tar -czf ${{ github.workspace }}/inference-benchmarker_x86_64.tar.gz -C ${{ github.workspace }} inference-benchmarker
7677
- name: Upload binary
7778
if: ${{ github.event_name != 'pull_request' }}
7879
uses: actions/upload-artifact@v4
7980
with:
80-
name: inference-benchmarker_x86_64
81+
name: inference-benchmarker_x86_64.tar.gz
8182
path: ${{ github.workspace }}/inference-benchmarker
8283

0 commit comments

Comments
 (0)