File: test-suite.yml

package info (click to toggle)
libpulp 0.3.16-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,976 kB
  • sloc: ansic: 11,792; python: 1,216; sh: 881; makefile: 871; cpp: 582; asm: 387
file content (61 lines) | stat: -rw-r--r-- 1,777 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Test Suite

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  CI:
    runs-on: ubuntu-latest

    strategy:
      matrix:
        opensuse: [tumbleweed, leap]
        compiler: [gcc, clang]
        build-type: [NORMAL]
        extra-configure: ['']
        include:
          - opensuse: tumbleweed
            compiler: gcc
            build-type: sanitizers
            extra-configure: --enable-sanitizers
          - opensuse: tumbleweed
            compiler: gcc
            build-type: thread-sanitizer
            extra-configure: --enable-thread-sanitizer
#         - opensuse: tumbleweed
#           compiler: gcc
#           build-type: valgrind
#           extra-configure: --enable-valgrind

    container:
      image: opensuse/${{ matrix.opensuse }}
      options: --privileged

    steps:
    - name: dependencies
      run: zypper -n install autoconf-archive libelf-devel
        python3-pexpect python3-psutil libunwind-devel
        git gcc gcc-c++ clang libtool make dash valgrind gzip
        findutils libjson-c-devel libseccomp-devel gawk
    - uses: actions/checkout@v2
    - name: bootstrap
      run: ./bootstrap
    - name: configure
      run: ./configure --enable-stack-check ${{ matrix.extra-configure }}
      if: ${{ matrix.compiler != 'clang' }}
    - name: configure
      run: CC=clang CXX=clang++ ./configure --enable-stack-check  ${{ matrix.extra-configure }}
      if: ${{ matrix.compiler == 'clang' }}
    - name: make
      run: make -j`nproc`
    - name: make check
      run: make check -j`nproc`
      id: check
    - name: diagnostics
      if: failure () && steps.check.outcome == 'failure'
      run: cat tests/test-suite.log
    - name: make distcheck
      run: make distcheck -j`nproc`