-
Notifications
You must be signed in to change notification settings - Fork 64
87 lines (69 loc) · 1.92 KB
/
c-cpp.yml
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
83
84
85
86
87
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
libmagickwand-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: Making without ImageMagick
working-directory: ./build
run: >
CFLAGS='
-g
-O2
-fsanitize=address,undefined
-fsanitize-undefined-trap-on-error
-Werror -Wno-error=unused
-Wno-error=unused-function
-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 --without-imagemagick
make -j4
- name: Running tests
working-directory: ./build
run: make check
- name: Making with ImageMagick
working-directory: ./build
run: >
rm -Rf ../build/*
../autogen.sh --prefix=/usr --enable-gtk-doc --enable-man
make -j4
- 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