Skip to content

Commit 0ee3c3f

Browse files
committed
Updating CI for build preset to match CI size test job params
1 parent 7fc9ba9 commit 0ee3c3f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/build-presets.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,17 @@ jobs:
4545
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
4646
runner: linux.2xlarge
4747
docker-image: executorch-ubuntu-22.04-arm-sdk
48-
python-version: 3.12
4948
submodules: recursive
5049
timeout: 90
5150
script: |
5251
set -eux
53-
${CONDA_RUN} ./install_requirements.sh > /dev/null
54-
${CONDA_RUN} cmake --preset ${{ matrix.preset }}
55-
${CONDA_RUN} cmake --build cmake-out -j$(( $(sysctl -n hw.ncpu) - 1 ))
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 -j$(( $(nproc) - 1 ))
5659
linux:
5760
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
5861
strategy:

0 commit comments

Comments
 (0)