Browse Source

Test push & PRs only when workflow file changes

Also, add comments to clarify what the test is testing
tags/v0.3.9
Izaak Beekman 5 years ago
parent
commit
0b44802164
No known key found for this signature in database GPG Key ID: CB21118C92A64702
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      .github/workflows/nightly-Homebrew-build.yml

+ 12
- 0
.github/workflows/nightly-Homebrew-build.yml View File

@@ -1,10 +1,20 @@
# Only the "head" branch of the OpenBLAS package is tested

on: on:
push: push:
paths:
- '**/nightlyHomebrew-build.yml'
pull_request: pull_request:
branches: branches:
- develop - develop
paths:
- '**/nightly-Homebrew-build.yml'
schedule: schedule:
- cron: 45 7 * * * - cron: 45 7 * * *
# This is 7:45 AM UTC daily, late at night in the USA

# Since push and pull_request will still always be building and testing the `develop` branch,
# it only makes sense to test if this file has been changed


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


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


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


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


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


Loading…
Cancel
Save