Skip to content

Build tt-metal artifacts #111

Build tt-metal artifacts

Build tt-metal artifacts #111

name: "Build tt-metal artifacts"
on:
workflow_call:
inputs:
arch:
required: false
type: string
default: '["grayskull", "wormhole_b0"]'
workflow_dispatch:
jobs:
build-artifact:
strategy:
matrix:
arch: ${{ fromJson(inputs.arch || '["grayskull", "wormhole_b0"]') }}
env:
TT_METAL_ENV: ${{ vars.TT_METAL_ENV }}
ARCH_NAME: ${{ matrix.arch }}
SILENT: 0
VERBOSE: 1
environment: dev
runs-on: build
steps:
- uses: tenstorrent-metal/metal-workflows/.github/actions/[email protected]
- name: Set up dynamic env vars for build
run: |
echo "TT_METAL_HOME=$(pwd)" >> $GITHUB_ENV
- name: Update submodules
run: |
git submodule update --init --recursive
- uses: ./.github/actions/install-python-deps
- name: Build tt-metal and libs
run: |
cmake -B build -G Ninja
cmake --build build --target tests -- -j`nproc`
cmake --build build --target install -- -j`nproc`
- name: 'Tar files'
run: tar -cvf ttm_${{ matrix.arch }}.tar build/hw build/lib tt_eager/tt_lib/*.so ttnn/ttnn/*.so build/programming_examples build/test build/tools
- name: 'Upload Artifact'
uses: actions/upload-artifact@v4
with:
name: TTMetal_build_${{ matrix.arch }}
path: ttm_${{ matrix.arch }}.tar