blob: b167f423e8f2204577b0f85a282ab6861820d163 (
plain)
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
|
name: "neozip: Static Analysis"
on:
workflow_call:
workflow_dispatch:
jobs:
gcc-analyzer:
name: GCC-14
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
show-progress: 'false'
- name: Install packages
run: sudo apt-get install -y gcc-14
- name: Generate project files
run: |
cmake -S neozip -B build \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=OFF \
-DWITH_FUZZERS=OFF \
-DWITH_CODE_COVERAGE=OFF \
-DWITH_MAINTAINER_WARNINGS=OFF
env:
CC: gcc-14
CFLAGS: >-
-fanalyzer
-Werror
-Wanalyzer-double-fclose
-Wanalyzer-double-free
-Wanalyzer-exposure-through-output-file
-Wanalyzer-file-leak
-Wanalyzer-free-of-non-heap
-Wanalyzer-malloc-leak
-Wanalyzer-null-argument
-Wanalyzer-null-dereference
-Wanalyzer-possible-null-argument
-Wanalyzer-possible-null-dereference
-Wanalyzer-stale-setjmp-buffer
-Wanalyzer-tainted-array-index
-Wanalyzer-unsafe-call-within-signal-handler
-Wanalyzer-use-after-free
-Wanalyzer-use-of-pointer-in-stale-stack-frame
CI: true
- name: Compile source code
run: cmake --build build -j5 --config Release > /dev/null
clang-analyzer:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
show-progress: 'false'
- name: Install packages
run: sudo apt-get install -y clang-tools
- name: Generate project files
run: |
scan-build --status-bugs \
cmake -S neozip -B build \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=OFF \
-DWITH_FUZZERS=OFF \
-DWITH_CODE_COVERAGE=OFF \
-DWITH_MAINTAINER_WARNINGS=OFF
env:
CI: true
- name: Compile source code
run: |
scan-build --status-bugs \
cmake --build build -j5 --config Release > /dev/null
|