diff options
-rwxr-xr-x | .github/setup_ci.sh | 7 | ||||
-rw-r--r-- | .github/workflows/c-cpp.yml | 56 |
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 |