1name: C/C++ CI
2
3on:
4  push:
5    branches: [ master, ci ]
6  pull_request:
7    branches: [ master ]
8
9jobs:
10  ci:
11    if: github.repository != 'openssh/openssh-portable-selfhosted'
12    strategy:
13      fail-fast: false
14      matrix:
15        os: [ubuntu-16.04, ubuntu-18.04, ubuntu-20.04, macos-10.15, macos-11.0]
16        configs: [default, pam]
17        # Then we include any extra configs we want to test for specific VMs.
18        include:
19          - { os: ubuntu-20.04, configs: kitchensink }
20          - { os: ubuntu-20.04, configs: hardenedmalloc }
21          - { os: ubuntu-20.04, configs: libressl-head }
22          - { os: ubuntu-20.04, configs: openssl-head }
23          - { os: ubuntu-20.04, configs: valgrind }
24          - { os: ubuntu-18.04, configs: kerberos5 }
25          - { os: ubuntu-18.04, configs: libedit }
26          - { os: ubuntu-18.04, configs: sk }
27          - { os: ubuntu-18.04, configs: selinux }
28          - { os: ubuntu-18.04, configs: kitchensink }
29          - { os: ubuntu-18.04, configs: without-openssl }
30          - { os: ubuntu-16.04, configs: kitchensink }
31    runs-on: ${{ matrix.os }}
32    steps:
33    - uses: actions/checkout@v2
34    - name: setup CI system
35      run: ./.github/setup_ci.sh ${{ matrix.configs }}
36    - name: autoreconf
37      run: autoreconf
38    - name: configure
39      run: ./.github/configure.sh ${{ matrix.configs }}
40    - name: make
41      run: make -j2
42    - name: install moduli
43      run: sudo sh -c "mkdir -p /usr/local/etc/; cp moduli /usr/local/etc/"
44    - name: make tests
45      run: ./.github/run_test.sh ${{ matrix.configs }}
46      env:
47        SUDO: sudo
48        TEST_SSH_UNSAFE_PERMISSIONS: 1
49