File: c-cpp.yml

package info (click to toggle)
chafa 1.18.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,828 kB
  • sloc: ansic: 52,456; xml: 881; sh: 610; makefile: 466; python: 334
file content (82 lines) | stat: -rw-r--r-- 1,890 bytes parent folder | download
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: C/C++ CI

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

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v3
    - name: Running prerequisites
      run: >
        sudo apt update -y

        sudo apt install -y
        automake
        libtool
        libglib2.0-dev
        libavif-dev
        libjpeg-dev
        librsvg2-dev
        libtiff-dev
        libwebp-dev
        gtk-doc-tools
        docbook-xml
        libxml2-utils
        
        export LD_LIBRARY_PATH=$(if [[ $CC == "clang" ]]; then echo -n '/usr/local/clang/lib'; fi)
        
        mkdir build
        
    - name: Building
      working-directory: ./build
      run: >
        CFLAGS='
        -g
        -O2
        -fsanitize=address,undefined 
        -fsanitize-undefined-trap-on-error 
        -fstack-protector-all 
        -Werror
        -Wno-error=attributes
        -Wno-error=cast-qual
        -Wno-error=unused
        -Wno-error=unused-function
        -Wno-error=unused-macros
        -Wno-error=unused-parameter
        -Wno-error=unused-variable
        -Wno-error=unused-const-variable
        -Wno-error=unused-value
        -Wno-error=comment
        -Wno-error=missing-braces'
        ../autogen.sh --prefix=/usr --enable-gtk-doc --enable-man
        
        make -j4
        
    - name: Running tests
      working-directory: ./build
      run: make check || { RET=$$?; find . -name "test-suite.log" -exec cat {} + ; exit $RET; }
      
    - name: Installing chafa
      working-directory: ./build
      run: >
        sudo make install
        
        chafa --version
        
    - name: Run post install
      working-directory: ./tests
      run: ./postinstall.sh
      
    - name: After failure
      if: failure()
      run: >
        touch tests/test-suite.log
        
        cat tests/test-suite.log