Skip to content

Commit 3c025ed

Browse files
committed
Only apply do_not_use_nightly_on_ci for regular PRs
1 parent 1e8cb4a commit 3c025ed

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.ci/scripts/setup-linux.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,7 @@ fi
2323
# of nightly. This allows CI to test against latest commits from PyTorch
2424
install_executorch "use-pt-pinned-commit"
2525
build_executorch_runner "${BUILD_TOOL}"
26-
do_not_use_nightly_on_ci
26+
27+
if [[ "${GITHUB_BASE_REF:-}" == *main* || "${GITHUB_BASE_REF:-}" == *gh* ]];
28+
do_not_use_nightly_on_ci
29+
fi

.ci/scripts/setup-macos.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,4 +136,7 @@ install_pytorch_and_domains
136136
# the pinned commit from PyTorch
137137
install_executorch "use-pt-pinned-commit"
138138
build_executorch_runner "${BUILD_TOOL}"
139-
do_not_use_nightly_on_ci
139+
140+
if [[ "${GITHUB_BASE_REF:-}" == *main* || "${GITHUB_BASE_REF:-}" == *gh* ]];
141+
do_not_use_nightly_on_ci
142+
fi

.github/workflows/_unittest.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ jobs:
3131
CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
3232
conda activate "${CONDA_ENV}"
3333
34-
# DEBUG
35-
env
36-
3734
# Setup swiftshader and Vulkan SDK which are required to build the Vulkan delegate
3835
source .ci/scripts/setup-vulkan-linux-deps.sh
3936
@@ -69,9 +66,6 @@ jobs:
6966
export PATH="${TMP_DIR}:$PATH"
7067
trap 'rm -rfv ${TMP_DIR}' EXIT
7168
72-
# DEBUG
73-
env
74-
7569
# Setup MacOS dependencies as there is no Docker support on MacOS atm
7670
PYTHON_EXECUTABLE=python \
7771
EXECUTORCH_BUILD_PYBIND=ON \

0 commit comments

Comments
 (0)