From 983ec51d027c800e4e1747fd8d04f31af48e593d Mon Sep 17 00:00:00 2001 From: Bjorn Andersson Date: Thu, 9 May 2024 15:32:33 -0500 Subject: [PATCH] github: Introduce build workflow Build the project across Ubuntu and macOS. Signed-off-by: Bjorn Andersson --- .github/workflows/build.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..4c82c90 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,32 @@ +name: Buildtest + +on: + pull_request: + push: + +jobs: + build: + strategy: + fail-fast: false + 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) + if: runner.os == 'macOS' + run: | + brew install libxml2 + brew install libusb + + - name: Build + run: make