Skip to content

Commit 3d37259

Browse files
committed
pybind ci
1 parent 502db64 commit 3d37259

File tree

1 file changed

+52
-1
lines changed

1 file changed

+52
-1
lines changed

.github/workflows/build-presets.yml

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
branches:
77
- main
88
- release/*
9+
paths:
10+
- .github/workflows/build-presets.yml
911
workflow_dispatch:
1012

1113
concurrency:
@@ -16,15 +18,64 @@ 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-x86_64:
38+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
39+
strategy:
40+
fail-fast: false
41+
matrix:
42+
preset: [pybind]
43+
with:
44+
job-name: build
45+
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
46+
runner: linux.2xlarge
47+
docker-image: executorch-ubuntu-22.04-clang12
48+
submodules: recursive
49+
timeout: 90
50+
script: |
51+
set -eux
52+
# The generic Linux job chooses to use base env, not the one setup by the image
53+
CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
54+
conda activate "${CONDA_ENV}"
55+
56+
./install_requirements.sh > /dev/null
57+
cmake --preset ${{ matrix.preset }}
58+
cmake --build cmake-out --parallel
59+
60+
linux-arm64:
61+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
62+
strategy:
63+
fail-fast: false
64+
matrix:
65+
preset: [pybind]
66+
with:
67+
job-name: build
68+
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
69+
runner: linux.arm64.2xlarge
70+
docker-image: executorch-ubuntu-22.04-gcc11-aarch64
71+
submodules: recursive
72+
timeout: 90
73+
script: |
74+
set -eux
75+
# The generic Linux job chooses to use base env, not the one setup by the image
76+
CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
77+
conda activate "${CONDA_ENV}"
78+
79+
./install_requirements.sh > /dev/null
80+
cmake --preset ${{ matrix.preset }}
81+
cmake --build cmake-out --parallel

0 commit comments

Comments
 (0)