From: Bernd Schubert <bschubert@ddn.com>
Date: Sun, 19 Feb 2023 00:29:23 +0000 (+0100)
Subject: Add a github actions file
X-Git-Tag: fuse-3.14.1~11
X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=91e6e3c8630dbda94618d671e506bde2883aaaff;p=qemu-gpiodev%2Flibfuse.git

Add a github actions file

converted from travis with _sligh_ editing by
https://akx.github.io/travis-to-github-actions/
---

diff --git a/.github/workflows/pr-ci.yml b/.github/workflows/pr-ci.yml
new file mode 100644
index 0000000..e1007f8
--- /dev/null
+++ b/.github/workflows/pr-ci.yml
@@ -0,0 +1,26 @@
+name: Converted Workflow
+on:
+  push:
+    branches:
+      - master
+  pull_request:
+    branches:
+      - master
+jobs:
+  build:
+    runs-on: '${{ matrix.os }}'
+    strategy:
+      matrix:
+        os:
+          # 18.04 does not work because of ‘no_sanitize’ attribute
+          # cc1: all warnings being treated as errors
+          # - ubuntu-18.04
+          - ubuntu-latest
+    steps:
+      - name: Install dependencies (Ubuntu)
+        if: runner.os == 'Linux'
+        run: sudo apt-get update && sudo apt-get install -y clang doxygen gcc gcc-10 gcc-9 libstdc++-10-dev libstdc++-9-dev ninja-build python3-pip python3-setuptools valgrind
+      - uses: actions/checkout@v3
+      - run: test/travis-install.sh
+      - run: test/travis-build.sh
+