From 9499f2bb01dc1032ae155999b2d7764b9491341f Mon Sep 17 00:00:00 2001 From: Stefan Schindler Date: Wed, 5 Aug 2020 19:00:52 +0200 Subject: Add CI with prepare script * Only use heimdal kerberos implementation * Fetch yubico/libfido2 (see: https://github.com/Yubico/libfido2) * Add one target for * all features * each feature alone * no features --- .github/workflows/c-cpp.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/c-cpp.yml (limited to '.github/workflows/c-cpp.yml') diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml new file mode 100644 index 000000000..f18f05a8a --- /dev/null +++ b/.github/workflows/c-cpp.yml @@ -0,0 +1,38 @@ +name: C/C++ CI + +on: + push: + branches: [ master, ci ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + configs: + - "" + - "--with-kerberos5" + - "--with-libedit" + - "--with-pam" + - "--with-security-key-builtin" + - "--with-selinux" + - "--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: make tests + env: + TEST_SSH_UNSAFE_PERMISSIONS: 1 -- cgit v1.2.3 From 651bb3a31949bbdc3a78b2ede95a77bce0c72984 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Fri, 7 Aug 2020 14:15:11 +1000 Subject: Add without-openssl without-zlib test target. --- .github/setup_ci.sh | 2 +- .github/workflows/c-cpp.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to '.github/workflows/c-cpp.yml') diff --git a/.github/setup_ci.sh b/.github/setup_ci.sh index 237721ade..e2474ccd7 100755 --- a/.github/setup_ci.sh +++ b/.github/setup_ci.sh @@ -13,7 +13,7 @@ lsb_release -a for TARGET in $TARGETS; do case $TARGET in - "") + ""|--without-openssl|--without-zlib) # nothing to do ;; "--with-kerberos5") diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index f18f05a8a..6ea16196b 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -21,6 +21,7 @@ jobs: - "--with-security-key-builtin" - "--with-selinux" - "--with-kerberos5 --with-libedit --with-pam --with-security-key-builtin --with-selinux" + - "--without-openssl --without-zlib" steps: - uses: actions/checkout@v2 -- cgit v1.2.3 From eb122b1eebe58b29a83a507ee814cbcf8aeded1b Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Fri, 7 Aug 2020 15:11:42 +1000 Subject: Add ability to specify exact test target. --- .github/run_test.sh | 23 +++++++++++++++++++++++ .github/workflows/c-cpp.yml | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100755 .github/run_test.sh (limited to '.github/workflows/c-cpp.yml') diff --git a/.github/run_test.sh b/.github/run_test.sh new file mode 100755 index 000000000..f8a97f51f --- /dev/null +++ b/.github/run_test.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +TARGETS=$@ + +TEST_TARGET="tests" +LTESTS="" # all tests by default + +set -ex + +for TARGET in $TARGETS; do + case $TARGET in + --without-openssl) + # When built without OpenSSL we can't do the file-based RSA key tests. + TEST_TARGET=t-exec + ;; + esac +done + +if [ -z "$LTESTS" ]; then + make $TEST_TARGET +else + make $TEST_TARGET LTESTS="$LTESTS" +fi diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 6ea16196b..2189756bb 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -34,6 +34,6 @@ jobs: - name: make run: make - name: make tests - run: make tests + run: ./.github/run_test.sh ${{ matrix.configs }} env: TEST_SSH_UNSAFE_PERMISSIONS: 1 -- cgit v1.2.3