Skip to content

Commit

Permalink
#11762: split docker image building out of build-artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
ttmchiou committed Aug 27, 2024
1 parent 1baea2b commit f126d1b
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 12 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/all-post-commit-workflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,26 @@ jobs:
static-checks:
uses: ./.github/workflows/all-static-checks.yaml
secrets: inherit
build-artifact:
uses: ./.github/workflows/build-artifact.yaml
secrets: inherit
build-docker-image-2204:
build-docker-image-2004:
uses: ./.github/workflows/build-docker-artifact.yaml
secrets: inherit
with:
os: ubuntu-22.04-amd64
os: ubuntu-20.04-amd64
build-artifact:
needs: build-docker-image-2004
uses: ./.github/workflows/build-artifact.yaml
secrets: inherit
build-artifact-profiler:
needs: build-docker-image-2004
uses: ./.github/workflows/build-artifact.yaml
with:
tracy: true
secrets: inherit
build-docker-image-2204:
uses: ./.github/workflows/build-docker-artifact.yaml
secrets: inherit
with:
os: ubuntu-22.04-amd64
# UMD Unit Tests
umd-unit-tests:
secrets: inherit
Expand Down
71 changes: 71 additions & 0 deletions .github/workflows/build-artifact-wrapper.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: "Build tt-metal artifacts"

on:
workflow_call:
inputs:
arch:
required: false
type: string
default: '["grayskull", "wormhole_b0"]'
build-type:
required: false
type: string
default: "Release"
tracy:
required: false
type: boolean
default: false
description: "Build with tracy enabled"
os:
required: false
type: string
default: "ubuntu-20.04-amd64"
workflow_dispatch:
inputs:
arch:
required: false
type: string
default: '["grayskull", "wormhole_b0"]'
build-type:
required: false
type: choice
options:
- Release
- Debug
- RelWithDebInfo
- CI
tracy:
required: false
type: boolean
default: false
description: "Build with tracy enabled"
os:
required: false
type: choice
default: "ubuntu-20.04-amd64"
options:
- "ubuntu-20.04-amd64"
- "ubuntu-22.04-amd64"

permissions:
actions: read
contents: read
pages: write
id-token: write
packages: write

jobs:
build-docker:
uses: ./.github/workflows/build-docker-artifact.yaml
secrets: inherit
with:
os: ${{ inputs.os }}
build-artifact:
needs: build-docker
uses: ./.github/workflows/build-artifact.yaml
secrets: inherit
with:
arch: ${{ inputs.arch }}
os: ${{ inputs.os }}
build-type: ${{ inputs.build-type }}
tracy: ${{ inputs.tracy }}
8 changes: 1 addition & 7 deletions .github/workflows/build-artifact.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Build tt-metal artifacts"
name: "[internal] Build tt-metal artifacts impl"

on:
workflow_call:
Expand Down Expand Up @@ -47,13 +47,7 @@ on:
- "ubuntu-20.04-amd64"
- "ubuntu-22.04-amd64"
jobs:
build-docker-image:
uses: ./.github/workflows/build-docker-artifact.yaml
with:
os: ${{ inputs.os }}

build-artifact:
needs: build-docker-image
strategy:
matrix:
arch: ${{ fromJson(inputs.arch || '["grayskull", "wormhole_b0", "blackhole"]') }}
Expand Down

0 comments on commit f126d1b

Please sign in to comment.