66 branches :
77 - main
88 - release/*
9+ paths :
10+ - .github/workflows/build-presets.yml
911 workflow_dispatch :
1012
1113concurrency :
@@ -16,15 +18,51 @@ jobs:
1618 apple :
1719 uses : pytorch/test-infra/.github/workflows/macos_job.yml@main
1820 strategy :
21+ fail-fast : false
1922 matrix :
20- preset : [macos-arm64]
23+ preset : [macos-arm64, pybind ]
2124 with :
2225 job-name : build
26+ ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
2327 runner : macos-latest-xlarge
2428 python-version : 3.12
2529 submodules : recursive
30+ timeout : 90
2631 script : |
2732 set -eux
2833 ${CONDA_RUN} ./install_requirements.sh > /dev/null
2934 ${CONDA_RUN} cmake --preset ${{ matrix.preset }}
3035 ${CONDA_RUN} cmake --build cmake-out --parallel
36+
37+ linux :
38+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
39+ strategy :
40+ fail-fast : false
41+ matrix :
42+ preset : [pybind]
43+ runner : [linux.2xlarge, linux.arm64.2xlarge]
44+ docker-image : [executorch-ubuntu-22.04-clang12, executorch-ubuntu-22.04-gcc11-aarch64]
45+ # Excluding specific runner + docker image combinations that don't make sense:
46+ # - Excluding the ARM64 gcc image on the x86 runner (linux.2xlarge)
47+ # - Excluding the x86 clang image on the ARM64 runner (linux.arm64.2xlarge)
48+ exclude :
49+ - runner : linux.2xlarge
50+ docker-image : executorch-ubuntu-22.04-gcc11-aarch64
51+ - runner : linux.arm64.2xlarge
52+ docker-image : executorch-ubuntu-22.04-clang12
53+ with :
54+ job-name : build
55+ ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
56+ runner : ${{ matrix.runner }}
57+ docker-image : ${{ matrix.docker-image }}
58+ submodules : recursive
59+ timeout : 90
60+ script : |
61+ set -eux
62+ # The generic Linux job chooses to use base env, not the one setup by the image
63+ CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
64+ conda activate "${CONDA_ENV}"
65+
66+ ./install_requirements.sh > /dev/null
67+ cmake --preset ${{ matrix.preset }}
68+ cmake --build cmake-out --parallel
0 commit comments