File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 71
71
REPO_DIR : OpenBLAS
72
72
OPENBLAS_COMMIT : " v0.3.27"
73
73
NIGHTLY : ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
74
+ BRANCH_NAME : ${{ github.ref_name }}
74
75
MACOSX_DEPLOYMENT_TARGET : 10.9
75
76
MB_PYTHON_VERSION : ${{ matrix.python-version }}
76
77
TRAVIS_PYTHON_VERSION : ${{ matrix.python-version }}
@@ -125,7 +126,8 @@ jobs:
125
126
source tools/build_steps.sh
126
127
echo "------ BEFORE BUILD ---------"
127
128
before_build
128
- if [[ "$NIGHTLY" = "true" ]]; then
129
+ echo BRANCH_NAME is "${BRANCH_NAME}"
130
+ if [ "$NIGHTLY" = "true" -a "$BRANCH_NAME" = "main" ]; then
129
131
echo "------ CLEAN CODE --------"
130
132
clean_code $REPO_DIR develop
131
133
echo "------ BUILD LIB --------"
You can’t perform that action at this time.
0 commit comments