Skip to content

Commit 0b44802

Browse files
committed
Test push & PRs only when workflow file changes
Also, add comments to clarify what the test is testing
1 parent 2c242b4 commit 0b44802

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/nightly-Homebrew-build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,20 @@
1+
# Only the "head" branch of the OpenBLAS package is tested
2+
13
on:
24
push:
5+
paths:
6+
- '**/nightlyHomebrew-build.yml'
37
pull_request:
48
branches:
59
- develop
10+
paths:
11+
- '**/nightly-Homebrew-build.yml'
612
schedule:
713
- cron: 45 7 * * *
14+
# This is 7:45 AM UTC daily, late at night in the USA
15+
16+
# Since push and pull_request will still always be building and testing the `develop` branch,
17+
# it only makes sense to test if this file has been changed
818

919
name: Nightly-Homebrew-Build
1020
jobs:
@@ -27,6 +37,7 @@ jobs:
2737
if: github.event_name == 'schedule'
2838

2939
- uses: actions/checkout@v2
40+
# This isn't even needed, technically. Homebrew will get `develop` via git
3041

3142
- name: Update Homebrew
3243
if: github.event_name != 'pull_request'
@@ -37,6 +48,7 @@ jobs:
3748

3849
- name: Install and bottle OpenBLAS
3950
run: brew install --fetch-HEAD --HEAD --build-bottle --keep-tmp openblas
51+
# the HEAD flags tell Homebrew to build the develop branch fetch via git
4052

4153
- name: Create bottle
4254
run: brew bottle -v openblas

0 commit comments

Comments
 (0)