]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Add GitHub CI to run test suite. 158/head
authorFelipe Gasper <felipe@felipegasper.com>
Wed, 16 Mar 2022 00:47:47 +0000 (20:47 -0400)
committerFelipe Gasper <felipe@felipegasper.com>
Wed, 16 Mar 2022 03:05:29 +0000 (23:05 -0400)
.github/workflows/testsuite.yml [new file with mode: 0644]

diff --git a/.github/workflows/testsuite.yml b/.github/workflows/testsuite.yml
new file mode 100644 (file)
index 0000000..69594e9
--- /dev/null
@@ -0,0 +1,39 @@
+on:
+  push:
+    branches:
+      - '*'
+    tags-ignore:
+      - '*'
+  pull_request:
+
+jobs:
+  linux:
+    runs-on: ubuntu-latest
+
+    steps:
+    - uses: actions/checkout@v3
+      with:
+        submodules: recursive
+    - run: libtoolize -ci
+    - run: autoreconf -fi
+    - run: ./configure
+    - run: make test
+
+  mac:
+    runs-on: macos-latest
+
+    steps:
+    - run: brew install automake libtool
+    - uses: actions/checkout@v3
+      with:
+        submodules: recursive
+    - run: glibtoolize -ci
+    - run: autoreconf -fi
+
+    # macOS’s system OpenSSL (LibreSSL, actually) isn’t meant for linking,
+    # and Homebrew’s# OpenSSL isn’t CI-friendly. So build without OpenSSL.
+    - run: ./configure --without-ssl --disable-sha2 --disable-gost --disable-ecdsa --disable-dane
+
+    # As of now the test suite requires OpenSSL, so no tests.
+    # cf. https://github.com/NLnetLabs/ldns/issues/162
+    - run: make