From 116e50884ebf55ddbaa9c944073267c5a87e1df9 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Tue, 1 Aug 2023 08:47:18 +0200 Subject: [PATCH] Add CI --- .github/workflows/main.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..896d327 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,25 @@ +name: Main + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Dependencies + run: | + sudo apt update + sudo apt install libhidapi-dev libdbus-1-dev libudev-dev + + - name: Build + run: make --C ${{github.workspace}}/build + + - name: Install + run: sudo make --C ${{github.workspace}}/build install