Skip to content

Commit

Permalink
Update GitHub workflow to install packages separately
Browse files Browse the repository at this point in the history
  • Loading branch information
rgov committed Dec 3, 2020
1 parent d42465a commit 216ee0f
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
strategy:
matrix:
os: [ macos-10.15 ]
package: [ libiio, libad9361-iio, gr-iio, iio-oscilloscope ]

runs-on: ${{ matrix.os }}

Expand All @@ -16,11 +17,8 @@ jobs:
- name: Copy formulae
run: cp *.rb $(brew --prefix)/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/
- name: Install
# We install the IIO Oscilloscope package, which builds the others
# through dependency resolution.
run: brew install --verbose --build-from-source iio-oscilloscope
- name: Test
run: |
for formula in *.rb; do
brew test "${formula%.rb}"
done
[ "${{ matrix.package }}" = "gr-iio" ] && OPTIONS="--HEAD"
brew install --verbose --build-from-source $OPTIONS ${{ matrix.package }}
- name: Test
run: brew test ${{ matrix.package }}

0 comments on commit 216ee0f

Please sign in to comment.