name: Build Presets on: pull_request: push: branches: - main - release/* paths: - .github/workflows/build-presets.yml workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.event_name == 'workflow_dispatch' }}-${{ github.event_name == 'schedule' }} cancel-in-progress: true jobs: apple: uses: pytorch/test-infra/.github/workflows/macos_job.yml@main strategy: fail-fast: false matrix: preset: [macos-arm64, pybind] with: job-name: build ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} runner: macos-latest-xlarge python-version: 3.12 submodules: recursive timeout: 90 script: | set -eux ${CONDA_RUN} ./install_requirements.sh > /dev/null ${CONDA_RUN} cmake --preset ${{ matrix.preset }} ${CONDA_RUN} cmake --build cmake-out --parallel linux: uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main strategy: fail-fast: false matrix: preset: [pybind] runner: [linux.2xlarge, linux.arm64.2xlarge] docker-image: [executorch-ubuntu-22.04-clang12, executorch-ubuntu-22.04-gcc11-aarch64] # Excluding specific runner + docker image combinations that don't make sense: # - Excluding the ARM64 gcc image on the x86 runner (linux.2xlarge) # - Excluding the x86 clang image on the ARM64 runner (linux.arm64.2xlarge) exclude: - runner: linux.2xlarge docker-image: executorch-ubuntu-22.04-gcc11-aarch64 - runner: linux.arm64.2xlarge docker-image: executorch-ubuntu-22.04-clang12 with: job-name: build ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} runner: ${{ matrix.runner }} docker-image: ${{ matrix.docker-image }} submodules: recursive timeout: 90 script: | set -eux # The generic Linux job chooses to use base env, not the one setup by the image CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]") conda activate "${CONDA_ENV}" ./install_requirements.sh > /dev/null cmake --preset ${{ matrix.preset }} cmake --build cmake-out --parallel