diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..42c2a05 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,28 @@ +name: Buildtest + +on: push + +jobs: + build: + strategy: + matrix: + os: [ ubuntu-latest, macos-latest ] + runs-on: ${{ matrix.os }} + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Dependencies (Ubuntu) + if: runner.os == 'Linux' + run: | + sudo apt-get update + sudo apt-get install -y libxml2-dev libusb-1.0-0-dev + + - name: Dependencies (macOS) + run: | + brew install libxml2 + brew install libusb + + - name: Build + run: make