-
Notifications
You must be signed in to change notification settings - Fork 75
39 lines (32 loc) · 913 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: GitHub Actions CI
on:
pull_request:
push:
branches:
- master
env:
HOMEBREW_DEVELOPER: 1
HOMEBREW_NO_AUTO_UPDATE: 1
jobs:
cancel_previous_runs:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- uses: n1hility/cancel-previous-runs@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
# To fix circular dependency issue, see:
# https://github.com/homebrew-ffmpeg/homebrew-ffmpeg/issues/13
- name: Remove chromaprint from ffmpeg formula
run: |
grep -v chromaprint Formula/ffmpeg.rb > Formula/ffmpeg.rb.tmp
mv Formula/ffmpeg.rb.tmp Formula/ffmpeg.rb
- run: brew test-bot --skip-recursive-dependents