diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..897549a --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,26 @@ +name: Build + +on: [push, pull_request] + +jobs: + install: + + strategy: + matrix: + os: [ macos-10.15 ] + + 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 + # 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 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index eb7a78d..0000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: c -os: osx -osx_image: xcode10.1 - -before_install: - - brew unlink python@2 - - brew update >/dev/null - - curl -O http://swdownloads.analog.com/cse/travis_builds/master_latest_libiio-darwin-10.13.6.pkg - - sudo installer -store -verbose -pkg master_latest_libiio-darwin-10.13.6.pkg -target / - - curl -O http://swdownloads.analog.com/cse/travis_builds/master_latest_libad9361-iio-osx_10.12.pkg - - sudo installer -store -verbose -pkg master_latest_libad9361-iio-osx_10.12.pkg -target / - -jobs: - include: - - stage: "Tests" - name: "Release" - script: brew install -v --build-from-source ./i-i-o-oscilloscope.rb - - stage: "Tests" - name: "Master" - script: brew install -v --HEAD --build-from-source ./i-i-o-oscilloscope.rb