Skip to content

Commit

Permalink
only trigger nightly build on main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
mattip committed Aug 8, 2024
1 parent 15c6999 commit 425f3c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/posix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ jobs:
REPO_DIR: OpenBLAS
OPENBLAS_COMMIT: "v0.3.27"
NIGHTLY: ${{ github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' }}
BRANCH_NAME: ${{ github.ref_name }}
MACOSX_DEPLOYMENT_TARGET: 10.9
MB_PYTHON_VERSION: ${{ matrix.python-version }}
TRAVIS_PYTHON_VERSION: ${{ matrix.python-version }}
Expand Down Expand Up @@ -125,7 +126,8 @@ jobs:
source tools/build_steps.sh
echo "------ BEFORE BUILD ---------"
before_build
if [[ "$NIGHTLY" = "true" ]]; then
echo BRANCH_NAME is "${BRANCH_NAME}"
if [ "$NIGHTLY" = "true" -a "$BRANCH_NAME" = "main" ]; then
echo "------ CLEAN CODE --------"
clean_code $REPO_DIR develop
echo "------ BUILD LIB --------"
Expand Down

0 comments on commit 425f3c7

Please sign in to comment.