-
Notifications
You must be signed in to change notification settings - Fork 22
44 lines (41 loc) · 1.34 KB
/
build-artifact.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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", "blackhole"]') }}
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/checkout-with-submodule-lfs@v2.0.0
- 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
- name: Build tt-metal and libs
run: |
cmake -B build -G Ninja
cmake --build build --target tests
cmake --build build --target install
- 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 runtime
- name: 'Upload Artifact'
uses: actions/upload-artifact@v4
with:
name: TTMetal_build_${{ matrix.arch }}
path: ttm_${{ matrix.arch }}.tar