Skip to content

Commit

Permalink
wip: build all in question
Browse files Browse the repository at this point in the history
  • Loading branch information
DwarKapex committed Nov 16, 2023
1 parent 3442369 commit f567e2c
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 49 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/_build_rosetta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ jobs:
with:
images: ${{ env.UPLD_IMAGE }}
flavor: latest=false
tags: type=raw,value=${{ github.run_id }}-${{ inputs.BASE_LIBRARY }}-${{ inputs.ARCHITECHTURE }}-mealkit
tags: type=raw,value=${{ github.run_id }}-${{ inputs.BASE_LIBRARY }}-${{ inputs.ARCHITECTURE }}-mealkit
labels: org.opencontainers.image.created=${{ inputs.BUILD_DATE }}

- name: Build docker images - mealkit
Expand All @@ -97,7 +97,7 @@ jobs:
context: rosetta/
push: true
file: rosetta/Dockerfile.${{ inputs.BASE_LIBRARY }}
platforms: linux/${{ inputs.ARCHITECHTURE }}
platforms: linux/${{ inputs.ARCHITECTURE }}
tags: ${{ steps.mealkit-metadata.outputs.tags }}
labels: ${{ steps.mealkit-metadata.outputs.labels }}
target: rosetta
Expand All @@ -110,7 +110,7 @@ jobs:
with:
images: ${{ env.UPLD_IMAGE }}
flavor: latest=false
tags: type=raw,value=${{ github.run_id }}-${{ inputs.BASE_LIBRARY }}-${{ inputs.ARCHITECHTURE }}-final
tags: type=raw,value=${{ github.run_id }}-${{ inputs.BASE_LIBRARY }}-${{ inputs.ARCHITECTURE }}-final
labels: org.opencontainers.image.created=${{ inputs.BUILD_DATE }}

- name: Build docker images - final
Expand All @@ -119,7 +119,7 @@ jobs:
context: rosetta/
push: true
file: rosetta/Dockerfile.${{ inputs.BASE_LIBRARY }}
platforms: linux/${{ inputs.ARCHITECHTURE }}
platforms: linux/${{ inputs.ARCHITECTURE }}
tags: ${{ steps.final-metadata.outputs.tags }}
labels: ${{ steps.final-metadata.outputs.labels }}
target: rosetta
Expand Down
91 changes: 46 additions & 45 deletions .github/workflows/_sandbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,63 +11,64 @@ permissions:

jobs:

# build-base:
# uses: ./.github/workflows/_build_base.yaml
# with:
# ARCHITECTURE: amd64
# secrets: inherit
build-base:
uses: ./.github/workflows/_build_base.yaml
with:
ARCHITECTURE: amd64
secrets: inherit

# build-jax:
# needs: [build-base]
# uses: ./.github/workflows/_build_jax.yaml
# with:
# ARCHITECTURE: amd64
# BASE_IMAGE: ${{ needs.build-base.outputs.DOCKER_TAG }}
# secrets: inherit
build-jax:
needs: [build-base]
uses: ./.github/workflows/_build_jax.yaml
with:
ARCHITECTURE: amd64
BASE_IMAGE: ${{ needs.build-base.outputs.DOCKER_TAG }}
secrets: inherit

# build-pax:
# needs: [build-jax]
# uses: ./.github/workflows/_build_pax.yaml
# with:
# ARCHITECTURE: amd64
# BASE_IMAGE: ${{ needs.build-jax.outputs.DOCKER_TAG_MEALKIT }}
# secrets: inherit
build-pax:
needs: [build-jax]
uses: ./.github/workflows/_build_pax.yaml
with:
ARCHITECTURE: amd64
BASE_IMAGE: ${{ needs.build-jax.outputs.DOCKER_TAG_MEALKIT }}
secrets: inherit

build-t5x:
# needs: [build-jax]
needs: [build-jax]
uses: ./.github/workflows/_build_t5x.yaml
with:
ARCHITECTURE: amd64
BASE_IMAGE: ghcr.io/nvidia/jax-toolbox-internal:6894053657-jax-amd64
BASE_IMAGE: ${{ needs.build-jax.outputs.DOCKER_TAG_MEALKIT }}
secrets: inherit

test-pax:
needs: [build-pax]
uses: ./.github/workflows/_test_pax.yaml
with:
PAX_IMAGE: ${{ needs.build-pax.outputs.DOCKER_TAG_FINAL }}
secrets: inherit

# test-te:
# needs: [build-pax]
# uses: ./.github/workflows/_test_te.yaml
# with:
# TE_IMAGE: ${{ needs.build-pax.outputs.DOCKER_TAG_FINAL }}
# secrets: inherit

build-rosetta:
# needs: [build-pax]
test-te:
needs: [build-pax]
uses: ./.github/workflows/_test_te.yaml
with:
TE_IMAGE: ${{ needs.build-pax.outputs.DOCKER_TAG_FINAL }}
secrets: inherit

build-rosetta-pax:
needs: [build-pax]
uses: ./.github/workflows/_build_rosetta.yaml
with:
ARCHITECTURE: amd64
BASE_LIBRARY: pax
BASE_IMAGE: ghcr.io/nvidia/jax-toolbox-internal:6894053657-upstream-pax-amd64

# test-pax:
# needs: [build-pax]
# uses: ./.github/workflows/_test_pax.yaml
# with:
# PAX_IMAGE: ${{ needs.build-pax.outputs.DOCKER_TAG_FINAL }}
# secrets: inherit
BASE_IMAGE: ${{ needs.build-pax.outputs.DOCKER_TAG_FINAL }}

# finalize:
# if: always()
# # TODO: use dynamic matrix to make dependencies self-updating
# needs: [build-jax, build-t5x, build-pax]
# uses: ./.github/workflows/_finalize.yaml
# with:
# PUBLISH_BADGE: false
# secrets: inherit
finalize:
if: always()
# TODO: use dynamic matrix to make dependencies self-updating
needs: [build-jax, build-t5x, build-pax]
uses: ./.github/workflows/_finalize.yaml
with:
PUBLISH_BADGE: false
secrets: inherit

0 comments on commit f567e2c

Please sign in to comment.