]> git.ozlabs.org Git - ppp.git/blobdiff - .github/workflows/ubuntu.yaml
Use autoconf/automake to configure and make ppp
[ppp.git] / .github / workflows / ubuntu.yaml
diff --git a/.github/workflows/ubuntu.yaml b/.github/workflows/ubuntu.yaml
new file mode 100644 (file)
index 0000000..8117d51
--- /dev/null
@@ -0,0 +1,24 @@
+name: Build and Test
+on: [push, pull_request]
+
+jobs:
+  build_and_test:
+    runs-on: ubuntu-latest
+
+    steps:
+    - uses: actions/checkout@v2
+
+    - name: install required packages
+      run: sudo DEBIAN_FRONTEND=noninteractive apt-get -y -qq install build-essential autoconf automake pkg-config libtool m4 autoconf-archive libssl-dev libatm1-dev libpcap-dev
+
+    - name: configure
+      run: ./autogen.sh --enable-multilink --enable-ipxcp
+
+    - name: build
+      run: make V=1 CFLAGS="-O2 -g -Wno-unused-result"
+
+    - name: check
+      run: make check
+
+    - name: distcheck
+      run: make distcheck DISTCHECK_CONFIGURE_FLAGS="--enable-multilink --enable-ipxcp"