Skip to content

Commit

Permalink
Merge pull request #174 from mattip/trigger
Browse files Browse the repository at this point in the history
CI: only trigger nightly build on main branch
  • Loading branch information
mattip authored Aug 8, 2024
2 parents 15c6999 + 425f3c7 commit 98c4d61
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 98c4d61

Please sign in to comment.