Skip to content

Commit

Permalink
#8082: try gzip compression
Browse files Browse the repository at this point in the history
  • Loading branch information
ttmchiou committed May 10, 2024
1 parent fd97941 commit 3aa462e
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/build-artifact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
CONFIG: ci
SILENT: 0
VERBOSE: 1
TT_METAL_DOCKER_IMAGE_TAG: tt-metal/ubuntu-20.04-amd64:latest
TT_METAL_DOCKER_IMAGE_TAG: ubuntu-20.04-amd64:latest
environment: dev
runs-on: build-docker
steps:
Expand All @@ -29,18 +29,18 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Tag Docker image
run: |
docker tag ${{ env.TT_METAL_DOCKER_IMAGE_TAG }} ghcr.io/${{ github.repository_owner }}/${{ env.TT_METAL_DOCKER_IMAGE_TAG }}
docker tag ${{ env.TT_METAL_DOCKER_IMAGE_TAG }} ghcr.io/${{ github.repository_owner }}/${{ github.repository }}/${{ env.TT_METAL_DOCKER_IMAGE_TAG }}
- name: Push Docker image
run: |
docker push ghcr.io/${{ github.repository_owner }}/${{ env.TT_METAL_DOCKER_IMAGE_TAG }}
docker push ghcr.io/${{ github.repository_owner }}/${{ github.repository }}/${{ env.TT_METAL_DOCKER_IMAGE_TAG }}
- name: Save Docker image
run: |
docker save ${{ env.TT_METAL_DOCKER_IMAGE_TAG }} > /tmp/docker_image.tar
docker save ${{ env.TT_METAL_DOCKER_IMAGE_TAG }} | gzip > /tmp/docker_image.tar.gz
- name: Upload Docker image as artifact
uses: actions/upload-artifact@v2
with:
name: docker_image.tar
path: /tmp/docker_image.tar
name: docker_image.tar.gz
path: /tmp/docker_image.tar.gz

build-artifact:
needs: build-docker-image
Expand All @@ -53,6 +53,7 @@ jobs:
CONFIG: ci
SILENT: 0
VERBOSE: 1
TT_METAL_DOCKER_IMAGE_TAG: tt-metal/ubuntu-20.04-amd64:latest
environment: dev
runs-on: build-docker
steps:
Expand All @@ -64,14 +65,14 @@ jobs:
- name: Download Docker image
uses: actions/download-artifact@v2
with:
name: docker_image.tar
name: docker_image.tar.gz
path: /tmp
- name: Load Docker image
run: |
docker load --input /tmp/docker_image.tar
gunzip -c /tmp/docker_image.tar.gz | docker load
- name: Build tt-metal cmake build
run: |
./scripts/docker/run_docker_cmd.sh -d "cmake -B build"
./scripts/docker/run_docker_cmd.sh -d "cmake -B build"
- name: Build tt-metal and libs 2
run: |
./scripts/docker/run_docker_cmd.sh -d "cmake --build build --target tests -- -j$(nproc)"
Expand Down

0 comments on commit 3aa462e

Please sign in to comment.