Build tt-metal artifacts #106
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Build tt-metal artifacts" | |
on: | |
workflow_call: | |
inputs: | |
arch: | |
required: false | |
type: string | |
default: '["grayskull", "wormhole_b0"]' | |
workflow_dispatch: | |
inputs: | |
arch: | |
required: false | |
description: 'Architecture' | |
default: '["grayskull", "wormhole_b0"]' | |
jobs: | |
build-artifact: | |
strategy: | |
matrix: | |
arch: ${{ fromJson(inputs.arch) }} | |
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 |