]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Add Github Action to build and test
authorMichael R Sweet <michael.r.sweet@gmail.com>
Mon, 1 Feb 2021 20:56:18 +0000 (15:56 -0500)
committerGitHub <noreply@github.com>
Mon, 1 Feb 2021 20:56:18 +0000 (15:56 -0500)
.github/workflows/build.yml [new file with mode: 0644]

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644 (file)
index 0000000..b0e13bd
--- /dev/null
@@ -0,0 +1,40 @@
+name: Build and Test
+
+on:
+  push:
+    branches: [ master ]
+  pull_request:
+    branches: [ master ]
+
+jobs:
+  build-linux:
+
+    runs-on: ubuntu-20.04
+
+    steps:
+    - uses: actions/checkout@v2
+    - name: install prerequisites
+      run: sudo apt-get install -y avahi-daemon libavahi-client-dev libgnutls28-dev libpam-dev libusb-1.0-0-dev zlib1g-dev
+    - name: configure
+      env:
+        CC: /usr/bin/gcc
+      run: ./configure --enable-debug --enable-maintainer --enable-sanitizer
+    - name: make
+      run: make
+    - name: test
+      env:
+        ASAN_OPTIONS: leak_check_at_exit=false
+      run: make test
+
+  build-macos:
+
+    runs-on: macos-latest
+
+    steps:
+    - uses: actions/checkout@v2
+    - name: configure
+      run: ./configure --enable-debug --enable-maintainer --enable-sanitizer
+    - name: make
+      run: make
+    - name: test
+      run: make test