-
Notifications
You must be signed in to change notification settings - Fork 3
29 lines (24 loc) · 1.07 KB
/
build.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
name: Build
on: [push, pull_request]
jobs:
install:
strategy:
fail-fast: false
matrix:
os: [ macos-10.15, macos-11.0 ]
package: [ libiio, libad9361-iio, gr-iio, iio-oscilloscope ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Copy formulae
run: cp *.rb $(brew --prefix)/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/
- name: Install
run: |
[ "${{ matrix.package }}" == "gr-iio" ] && OPTIONS="--HEAD"
[ "${{ matrix.package }}" != "libiio" ] && brew install --verbose --build-from-source libiio
[ "${{ matrix.package }}" == "iio-oscilloscope" ] && brew install --verbose --build-from-source libad9361-iio
[ "${{ matrix.package }}" == "iio-oscilloscope" ] && brew install --verbose --build-from-source gtkdatabox-prev1
[ "${{ matrix.package }}" == "gr-iio" ] && brew install --verbose --build-from-source libad9361-iio
brew install --verbose --build-from-source $OPTIONS ${{ matrix.package }}
- name: Test
run: brew test ${{ matrix.package }}