Add github action for GNU/Linux
authorLudovic Rousseau <ludovic.rousseau@free.fr>
Fri, 31 Dec 2021 17:29:04 +0000 (18:29 +0100)
committerLudovic Rousseau <ludovic.rousseau@free.fr>
Thu, 20 Jan 2022 21:26:53 +0000 (22:26 +0100)
Signed-off-by: Ludovic Rousseau <ludovic.rousseau@free.fr>
.github/workflows/linux.yml [new file with mode: 0644]
libusb/version_nano.h

diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
new file mode 100644 (file)
index 0000000..12d7df0
--- /dev/null
@@ -0,0 +1,36 @@
+name: linux
+
+# Controls when the action will run. Triggers the workflow on push or pull request
+# events but only for the master branch
+on: [push, pull_request]
+
+# A workflow run is made up of one or more jobs that can run
+# sequentially or in parallel
+jobs:
+  # This workflow contains a single job called "build"
+  build:
+    runs-on: ubuntu-latest
+
+    # Steps represent a sequence of tasks that will be executed as part of the job
+    steps:
+      # Checks-out your repository under $GITHUB_WORKSPACE, so your job
+      # can access it
+      - uses: actions/checkout@v2
+
+      - name: setup prerequisites
+        shell: bash
+        run: |
+          sudo apt update
+          sudo apt install autoconf automake libtool libudev-dev m4
+
+      - name: bootstrap
+        shell: bash
+        run: ./bootstrap.sh
+
+      - name: netlink
+        shell: bash
+        run: .private/ci-build.sh --build-dir build-netlink -- --disable-udev
+
+      - name: udev
+        shell: bash
+        run: .private/ci-build.sh --build-dir build-udev -- --enable-udev
index 30643ff..4b134b9 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 11683
+#define LIBUSB_NANO 11684