File tree 1 file changed +35
-0
lines changed 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Clang Static Analysis
2
+ on :
3
+ push
4
+ jobs :
5
+ clang-analyzer :
6
+ name : Clang Static Analysis
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v3
10
+ - name : deps
11
+ run : |
12
+ sudo apt install libncurses5-dev libreadline-dev nettle-dev \
13
+ libgnutls28-dev libuv1-dev cython3 python3-dev python3-setuptools libcppunit-dev libjsoncpp-dev \
14
+ autotools-dev autoconf libfmt-dev libhttp-parser-dev libmsgpack-dev libargon2-0-dev libasio-dev \
15
+ llvm llvm-dev clang clang-tools && \
16
+ sudo apt remove gcc g++
17
+
18
+ - name : restinio
19
+ run : |
20
+ mkdir restinio && cd restinio \
21
+ && wget https://github.com/aberaud/restinio/archive/e0a261dd8488246a3cb8bbb3ea781ea5139c3c94.tar.gz \
22
+ && ls -l && tar -xzf e0a261dd8488246a3cb8bbb3ea781ea5139c3c94.tar.gz \
23
+ && cd restinio-e0a261dd8488246a3cb8bbb3ea781ea5139c3c94/dev \
24
+ && cmake -DCMAKE_INSTALL_PREFIX=/usr -DRESTINIO_TEST=OFF -DRESTINIO_SAMPLE=OFF \
25
+ -DRESTINIO_INSTALL_SAMPLES=OFF -DRESTINIO_BENCH=OFF -DRESTINIO_INSTALL_BENCHES=OFF \
26
+ -DRESTINIO_FIND_DEPS=ON -DRESTINIO_ALLOW_SOBJECTIZER=Off -DRESTINIO_USE_BOOST_ASIO=none . \
27
+ && make -j8 && sudo make install \
28
+ && cd ../../.. && rm -rf restinio
29
+
30
+ - name : cmake
31
+ run : |
32
+ mkdir build && cd build && \
33
+ cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DOPENDHT_C=On -DOPENDHT_PEER_DISCOVERY=On -DOPENDHT_PYTHON=On -DOPENDHT_TOOLS=On -DOPENDHT_PROXY_SERVER=On -DOPENDHT_PROXY_CLIENT=On
34
+ - name : scan-build
35
+ run : cd build && scan-build --status-bugs make
You can’t perform that action at this time.
0 commit comments