Skip to content

Commit

Permalink
Merge branch 'main' into brosko/grays-mock
Browse files Browse the repository at this point in the history
  • Loading branch information
broskoTT authored Nov 21, 2024
2 parents eb6fccd + 90ea1ad commit f03cc47
Show file tree
Hide file tree
Showing 10 changed files with 96 additions and 89 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Optional PR checks
name: On PR - Optional
# Build and then run all tests, on all supported archs.
name: Build and run all tests

on:
workflow_dispatch:
pull_request:
branches: ["main"]
push:
branches: ["main"]

jobs:
build-tests:
Expand Down
56 changes: 56 additions & 0 deletions .github/workflows/build-clients.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Build clients on newest UMD

on:
workflow_dispatch:
inputs:
timeout:
required: true
description: 'The timeout for the job in minutes'
type: number
default: 30
pull_request:
branches: ["main"]
push:
branches: ["main"]

jobs:
build-tt-metal:
# Due to parsing bug, fromJSON is used to convert string to number.
# In pull_request or push events, the input context is not available, stating the default again here.
timeout-minutes: ${{ fromJSON(inputs.timeout || '30') }}
strategy:
fail-fast: false
matrix:
arch_name: [grayskull, wormhole_b0, blackhole]

name: Build tt-metal for ${{ matrix.arch_name }} with newest UMD
runs-on: ubuntu-20.04
container:
image: ghcr.io/tenstorrent/tt-metal/tt-metalium/ubuntu-20.04-amd64:latest
options: --user root

steps:
- name: Checkout client repo
uses: actions/checkout@v4
with:
# Clone under tt-metal directory
path: tt-metal
repository: tenstorrent/tt-metal
submodules: recursive
lfs: 'true'

- name: Checkout UMD
uses: actions/checkout@v4
with:
# Clone directly into tt-metal directory for umd
path: tt-metal/tt_metal/third_party/umd
submodules: recursive
lfs: 'true'

- name: Build tt-metal
run: |
cd tt-metal
export ARCH_NAME=${{ matrix.arch_name }}
export TT_METAL_HOME=$(pwd)
export PYTHONPATH=$(pwd)
./build_metal.sh
18 changes: 10 additions & 8 deletions .github/workflows/build-device.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# Builds device.
# Build is performed on all supported OS versions.
name: Build Target
name: Build Device

on:
workflow_call:
inputs:
timeout:
required: true
type: number
workflow_dispatch:
inputs:
timeout:
required: true
description: 'The timeout for the build job in minutes'
description: 'The timeout for the job in minutes'
type: number
default: 15
pull_request:
branches: ["main"]
push:
branches: ["main"]

env:
BUILD_TARGET: device
Expand All @@ -25,7 +25,9 @@ env:

jobs:
build:
timeout-minutes: ${{ inputs.timeout }}
# Due to parsing bug, fromJSON is used to convert string to number.
# In pull_request or push events, the input context is not available, stating the default again here.
timeout-minutes: ${{ fromJSON(inputs.timeout || '15') }}
strategy:
fail-fast: false
matrix:
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,17 @@ name: Build and Publish Docker Image

on:
workflow_dispatch:
workflow_call:
inputs:
timeout:
required: true
description: 'The timeout for the job in minutes'
type: number
default: 15

jobs:
build:
timeout-minutes: 15
# Due to parsing bug, fromJSON is used to convert string to number
timeout-minutes: ${{ fromJSON(inputs.timeout) }}
strategy:
fail-fast: false
matrix:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/build-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ env:

jobs:
build:
timeout-minutes: ${{ inputs.timeout }}
# Due to parsing bug, fromJSON is used to convert string to number
timeout-minutes: ${{ fromJSON(inputs.timeout) }}
strategy:
fail-fast: false
matrix:
Expand Down
18 changes: 0 additions & 18 deletions .github/workflows/on-pr.yml

This file was deleted.

54 changes: 0 additions & 54 deletions .github/workflows/on-push.yml

This file was deleted.

5 changes: 4 additions & 1 deletion .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
name: Run Pre-commit Hooks

on:
workflow_call:
workflow_dispatch:
pull_request:
branches: ["main"]
push:
branches: ["main"]

jobs:
pre-commit:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ env:

jobs:
test:
timeout-minutes: ${{ inputs.timeout }}
# Due to parsing bug, fromJSON is used to convert string to number
timeout-minutes: ${{ fromJSON(inputs.timeout) }}
strategy:
fail-fast: false
matrix:
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/test-runner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@ name: Check runner

on:
workflow_dispatch:
inputs:
timeout:
required: true
description: 'The timeout for the job in minutes'
type: number
default: 10

jobs:
check-runners-host:
timeout-minutes: 10
# Due to parsing bug, fromJSON is used to convert string to number
timeout-minutes: ${{ fromJSON(inputs.timeout) }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -52,7 +59,8 @@ jobs:
du -h --max-depth=1 | sort -rh
check-runners-docker:
timeout-minutes: 10
# Due to parsing bug, fromJSON is used to convert string to number
timeout-minutes: ${{ fromJSON(inputs.timeout) }}
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit f03cc47

Please sign in to comment.