summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2021-01-08 14:26:32 +1100
committerDarren Tucker <dtucker@dtucker.net>2021-01-08 15:49:06 +1100
commitc336644351fa3c715a08b7a292e309e72792e71e (patch)
tree46f8df83effa27550fbabc208b5bd6bfdf3e9086
parent4c7af01f9dcc1606dec033e7665a042cb0d8ec52 (diff)
Add Ubuntu 16.04 and 20.04 test targets.
-rwxr-xr-x.github/setup_ci.sh7
-rw-r--r--.github/workflows/c-cpp.yml56
2 files changed, 61 insertions, 2 deletions
diff --git a/.github/setup_ci.sh b/.github/setup_ci.sh
index e2474ccd..61349be1 100755
--- a/.github/setup_ci.sh
+++ b/.github/setup_ci.sh
@@ -1,5 +1,12 @@
#!/usr/bin/env bash
+case $(./config.guess) in
+*-darwin*)
+ # no setup needed for Mac OS X
+ exit 0
+ ;;
+esac
+
TARGETS=$@
PACKAGES=""
diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml
index 2189756b..83fd02ba 100644
--- a/.github/workflows/c-cpp.yml
+++ b/.github/workflows/c-cpp.yml
@@ -7,9 +7,35 @@ on:
branches: [ master ]
jobs:
- build:
+ ubuntu-20_04:
- runs-on: ubuntu-latest
+ runs-on: ubuntu-20.04
+
+ strategy:
+ matrix:
+ configs:
+ - ""
+ - "--with-kerberos5 --with-libedit --with-pam --with-security-key-builtin --with-selinux"
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: setup CI system
+ run: ./.github/setup_ci.sh ${{ matrix.configs }}
+ - name: autoreconf
+ run: autoreconf
+ - name: configure
+ run: ./configure ${{ matrix.configs }}
+ - name: make
+ run: make
+ - name: make tests
+ run: ./.github/run_test.sh ${{ matrix.configs }}
+ env:
+ TEST_SSH_UNSAFE_PERMISSIONS: 1
+
+
+ ubuntu-18_04:
+
+ runs-on: ubuntu-18.04
strategy:
matrix:
@@ -37,3 +63,29 @@ jobs:
run: ./.github/run_test.sh ${{ matrix.configs }}
env:
TEST_SSH_UNSAFE_PERMISSIONS: 1
+
+
+ ubuntu-16_04:
+
+ runs-on: ubuntu-16.04
+
+ strategy:
+ matrix:
+ configs:
+ - ""
+ - "--with-pam --with-selinux --with-libedit --with-kerberos5 "
+
+ steps:
+ - uses: actions/checkout@v2
+ - name: setup CI system
+ run: ./.github/setup_ci.sh ${{ matrix.configs }}
+ - name: autoreconf
+ run: autoreconf
+ - name: configure
+ run: ./configure ${{ matrix.configs }}
+ - name: make
+ run: make
+ - name: make tests
+ run: ./.github/run_test.sh ${{ matrix.configs }}
+ env:
+ TEST_SSH_UNSAFE_PERMISSIONS: 1