diff options
Diffstat (limited to '.github/workflows/c-cpp.yml')
-rw-r--r-- | .github/workflows/c-cpp.yml | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml new file mode 100644 index 000000000..2189756bb --- /dev/null +++ b/.github/workflows/c-cpp.yml | |||
@@ -0,0 +1,39 @@ | |||
1 | name: C/C++ CI | ||
2 | |||
3 | on: | ||
4 | push: | ||
5 | branches: [ master, ci ] | ||
6 | pull_request: | ||
7 | branches: [ master ] | ||
8 | |||
9 | jobs: | ||
10 | build: | ||
11 | |||
12 | runs-on: ubuntu-latest | ||
13 | |||
14 | strategy: | ||
15 | matrix: | ||
16 | configs: | ||
17 | - "" | ||
18 | - "--with-kerberos5" | ||
19 | - "--with-libedit" | ||
20 | - "--with-pam" | ||
21 | - "--with-security-key-builtin" | ||
22 | - "--with-selinux" | ||
23 | - "--with-kerberos5 --with-libedit --with-pam --with-security-key-builtin --with-selinux" | ||
24 | - "--without-openssl --without-zlib" | ||
25 | |||
26 | steps: | ||
27 | - uses: actions/checkout@v2 | ||
28 | - name: setup CI system | ||
29 | run: ./.github/setup_ci.sh ${{ matrix.configs }} | ||
30 | - name: autoreconf | ||
31 | run: autoreconf | ||
32 | - name: configure | ||
33 | run: ./configure ${{ matrix.configs }} | ||
34 | - name: make | ||
35 | run: make | ||
36 | - name: make tests | ||
37 | run: ./.github/run_test.sh ${{ matrix.configs }} | ||
38 | env: | ||
39 | TEST_SSH_UNSAFE_PERMISSIONS: 1 | ||