@@ -13,6 +13,10 @@ concurrency:
1313 cancel-in-progress : true
1414
1515jobs :
16+ docker-image :
17+ name : Resolve CI docker image
18+ uses : ./.github/workflows/_docker-image.yml
19+
1620 apple :
1721 uses : pytorch/test-infra/.github/workflows/macos_job.yml@main
1822 strategy :
@@ -34,16 +38,20 @@ jobs:
3438 ${CONDA_RUN} cmake --build cmake-out -j$(( $(sysctl -n hw.ncpu) - 1 ))
3539
3640 zephyr :
37- uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
41+ needs : docker-image
42+ uses : pytorch/test-infra/.github/workflows/linux_job_v3.yml@main
43+ permissions :
44+ id-token : write
45+ contents : read
3846 strategy :
3947 fail-fast : false
4048 matrix :
4149 preset : [zephyr]
4250 with :
4351 job-name : build
4452 ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
45- runner : linux.2xlarge
46- docker-image : ci-image:executorch-ubuntu-22.04-zephyr-sdk
53+ runner : mt-l-x86iavx512-8-64
54+ docker-image : ${{ needs.docker-image.outputs.docker-registry }}/ ci-image:executorch-ubuntu-22.04-zephyr-sdk-${{ needs.docker-image.outputs.ci-docker-hash }}
4755 submodules : recursive
4856 timeout : 90
4957 script : |
@@ -73,26 +81,30 @@ jobs:
7381 cmake --preset ${{ matrix.preset }}
7482 cmake --build cmake-out -j$(( $(nproc) - 1 ))
7583 linux :
76- uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
84+ needs : docker-image
85+ uses : pytorch/test-infra/.github/workflows/linux_job_v3.yml@main
86+ permissions :
87+ id-token : write
88+ contents : read
7789 strategy :
7890 fail-fast : false
7991 matrix :
8092 preset : [linux, pybind, llm]
81- runner : [linux.2xlarge, linux.arm64.2xlarge ]
93+ runner : [mt-l-x86iavx512-8-64, mt-l-arm64g4-16-62 ]
8294 docker-image : [executorch-ubuntu-22.04-clang12, executorch-ubuntu-22.04-gcc11-aarch64]
8395 # Excluding specific runner + docker image combinations that don't make sense:
84- # - Excluding the ARM64 gcc image on the x86 runner (linux.2xlarge)
85- # - Excluding the x86 clang image on the ARM64 runner (linux.arm64.2xlarge)
96+ # - Excluding the ARM64 gcc image on the x86 runner
97+ # - Excluding the x86 clang image on the ARM64 runner
8698 exclude :
87- - runner : linux.2xlarge
99+ - runner : mt-l-x86iavx512-8-64
88100 docker-image : executorch-ubuntu-22.04-gcc11-aarch64
89- - runner : linux.arm64.2xlarge
101+ - runner : mt-l-arm64g4-16-62
90102 docker-image : executorch-ubuntu-22.04-clang12
91103 with :
92104 job-name : build
93105 ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
94106 runner : ${{ matrix.runner }}
95- docker-image : ci-image:${{ matrix.docker-image }}
107+ docker-image : ${{ needs.docker-image.outputs.docker-registry }}/ ci-image:${{ matrix.docker-image }}-${{ needs.docker-image.outputs.ci-docker-hash }}
96108 submodules : recursive
97109 timeout : 90
98110 script : |
0 commit comments