@@ -3,48 +3,44 @@ run-name: MJX build (${{ github.event_name == 'workflow_run' && format('nightly
33
44on :
55 schedule :
6- - cron : ' 30 9 * * *' # Pacific Time 01:30 AM in UTC
6+ - cron : " 30 9 * * *" # Pacific Time 01:30 AM in UTC
77 workflow_dispatch :
88 inputs :
99 BASE_IMAGE_AMD64 :
1010 type : string
11- description : ' JAX mealkit AMD64 image built by NVIDIA/JAX-Toolbox'
12- default : ' '
11+ description : " JAX mealkit AMD64 image built by NVIDIA/JAX-Toolbox"
12+ default : " "
1313 required : false
1414 BASE_IMAGE_ARM64 :
1515 type : string
16- description : ' JAX mealkit AMD64 image built by NVIDIA/JAX-Toolbox'
17- default : ' '
16+ description : " JAX mealkit AMD64 image built by NVIDIA/JAX-Toolbox"
17+ default : " "
1818 required : false
1919 PUBLISH :
2020 type : boolean
2121 description : Publish dated images and update the 'latest' tag?
2222 default : false
2323 required : false
2424
25-
2625env :
2726 DOCKER_REGISTRY : ghcr.io/nvidia
2827 DEFAULT_BASE_IMAGE : ghcr.io/nvidia/jax-mealkit:jax
2928
30-
3129permissions :
32- contents : read # to fetch code
33- actions : write # to cancel previous workflows
30+ contents : read # to fetch code
31+ actions : write # to cancel previous workflows
3432 packages : write # to upload container
3533
3634jobs :
37-
3835 metadata :
3936 runs-on : ubuntu-22.04
4037 outputs :
4138 PUBLISH : ${{ steps.if-publish.outputs.PUBLISH }}
4239 BASE_IMAGE_AMD64 : ${{ steps.base-image.outputs.BASE_IMAGE_AMD64 }}
4340 BASE_IMAGE_ARM64 : ${{ steps.base-image.outputs.BASE_IMAGE_ARM64 }}
4441 BUILD_DATE : ${{ steps.date.outputs.BUILD_DATE }}
45-
46- steps :
4742
43+ steps :
4844 - name : Cancel workflow if upstream workflow did not success
4945 if : ${{ steps.if-upstream-failed.outputs.UPSTREAM_FAILED == 'true' }}
5046 run : |
@@ -83,10 +79,10 @@ jobs:
8379 fi
8480 echo "BASE_IMAGE_AMD64=${BASE_IMAGE_AMD64}" >> $GITHUB_OUTPUT
8581 echo "BASE_IMAGE_ARM64=${BASE_IMAGE_ARM64}" >> $GITHUB_OUTPUT
86-
82+
8783 amd64 :
8884 needs : metadata
89- uses : ./.github/workflows/_build .yaml
85+ uses : ./.github/workflows/_build_upstream .yaml
9086 with :
9187 ARCHITECTURE : amd64
9288 ARTIFACT_NAME : artifact-mjx-build
9995
10096 arm64 :
10197 needs : metadata
102- uses : ./.github/workflows/_build .yaml
98+ uses : ./.github/workflows/_build_upstream .yaml
10399 with :
104100 ARCHITECTURE : arm64
105101 ARTIFACT_NAME : artifact-mjx-build
@@ -158,13 +154,17 @@ jobs:
158154 matrix :
159155 GPU_ARCH : [A100]
160156 # ensures A100 job lands on dedicated runner for this particular job
161- runs-on : [self-hosted, "${{ matrix.GPU_ARCH == 'A100' && format('{0}:{1}', matrix.GPU_ARCH, github.run_id) || matrix.GPU_ARCH }}"]
157+ runs-on :
158+ [
159+ self-hosted,
160+ " ${{ matrix.GPU_ARCH == 'A100' && format('{0}:{1}', matrix.GPU_ARCH, github.run_id) || matrix.GPU_ARCH }}" ,
161+ ]
162162 steps :
163163 - name : Print environment variables
164164 run : env
165165
166166 - name : Print GPU information
167- run : nvidia-smi
167+ run : nvidia-smi
168168
169169 - name : Check out repository
170170 uses : actions/checkout@v4
@@ -186,7 +186,7 @@ jobs:
186186 continue-on-error : true
187187 run : |
188188 docker run --gpus=all --shm-size=1g ${{ needs.amd64.outputs.DOCKER_TAG_FINAL }} bash -ec "mjx-testspeed --mjcf=humanoid/humanoid.xml --batch_size=8192 --unroll=4 --output=tsv" | tee -a test-mjx.log
189-
189+
190190 - name : Save perf to summary
191191 shell : bash -x -e {0}
192192 continue-on-error : true
0 commit comments