mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-22 21:43:02 +01:00
chore: Add "infer" static analysis action on CI.
This commit is contained in:
parent
5230616a9d
commit
85f9ec6b9a
1
.github/settings.yml
vendored
1
.github/settings.yml
vendored
@ -15,3 +15,4 @@ branches:
|
|||||||
- cirrus-ci
|
- cirrus-ci
|
||||||
- Codacy Static Code Analysis
|
- Codacy Static Code Analysis
|
||||||
- code-review/reviewable
|
- code-review/reviewable
|
||||||
|
- infer
|
||||||
|
73
.github/workflows/ci.yml
vendored
73
.github/workflows/ci.yml
vendored
@ -11,7 +11,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Install libraries
|
- name: Install dependencies
|
||||||
run:
|
run:
|
||||||
sudo apt-get update &&
|
sudo apt-get update &&
|
||||||
sudo apt-get install -y --no-install-recommends
|
sudo apt-get install -y --no-install-recommends
|
||||||
@ -24,11 +24,9 @@ jobs:
|
|||||||
libqrencode-dev
|
libqrencode-dev
|
||||||
libsodium-dev
|
libsodium-dev
|
||||||
libvpx-dev
|
libvpx-dev
|
||||||
|
libx11-dev
|
||||||
python3-dev
|
python3-dev
|
||||||
pkg-config
|
pkg-config &&
|
||||||
|
|
||||||
- name: Install toxcore
|
|
||||||
run:
|
|
||||||
git clone --depth=1 https://github.com/TokTok/c-toxcore &&
|
git clone --depth=1 https://github.com/TokTok/c-toxcore &&
|
||||||
cd c-toxcore &&
|
cd c-toxcore &&
|
||||||
cmake . -B_build -DBOOTSTRAP_DAEMON=OFF &&
|
cmake . -B_build -DBOOTSTRAP_DAEMON=OFF &&
|
||||||
@ -38,3 +36,68 @@ jobs:
|
|||||||
|
|
||||||
- name: Build toxic
|
- name: Build toxic
|
||||||
run: make -j4
|
run: make -j4
|
||||||
|
|
||||||
|
infer:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: toxchat/infer
|
||||||
|
steps:
|
||||||
|
- name: Install git
|
||||||
|
run:
|
||||||
|
apt-get update &&
|
||||||
|
DEBIAN_FRONTEND=noninteractive
|
||||||
|
apt-get install -y --no-install-recommends
|
||||||
|
git
|
||||||
|
- name: Install dependencies
|
||||||
|
run:
|
||||||
|
apt-get update &&
|
||||||
|
apt-get install -y --no-install-recommends
|
||||||
|
cmake
|
||||||
|
g++
|
||||||
|
libalut-dev
|
||||||
|
libconfig-dev
|
||||||
|
libcurl4-gnutls-dev
|
||||||
|
libncurses-dev
|
||||||
|
libnotify-dev
|
||||||
|
libopenal-dev
|
||||||
|
libopus-dev
|
||||||
|
libqrencode-dev
|
||||||
|
libsodium-dev
|
||||||
|
libvpx-dev
|
||||||
|
libx11-dev
|
||||||
|
make
|
||||||
|
python3-dev
|
||||||
|
pkg-config &&
|
||||||
|
git clone --depth=1 https://github.com/TokTok/c-toxcore &&
|
||||||
|
cd c-toxcore &&
|
||||||
|
cmake . -B_build -DBOOTSTRAP_DAEMON=OFF &&
|
||||||
|
cd _build &&
|
||||||
|
make -j4 &&
|
||||||
|
make install
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Run infer
|
||||||
|
run:
|
||||||
|
infer --no-progress-bar -- cc src/*.c
|
||||||
|
-fsyntax-only
|
||||||
|
$(python3-config --includes --ldflags)
|
||||||
|
$(pkg-config --cflags --libs
|
||||||
|
freealut
|
||||||
|
libconfig
|
||||||
|
libcurl
|
||||||
|
libnotify
|
||||||
|
libpng
|
||||||
|
libqrencode
|
||||||
|
ncurses
|
||||||
|
openal
|
||||||
|
python3
|
||||||
|
toxcore
|
||||||
|
vpx
|
||||||
|
x11)
|
||||||
|
-DAUDIO
|
||||||
|
-DBOX_NOTIFY
|
||||||
|
-DGAMES
|
||||||
|
-DPACKAGE_DATADIR='""'
|
||||||
|
-DPYTHON
|
||||||
|
-DQRCODE
|
||||||
|
-DSOUND_NOTIFY
|
||||||
|
-DVIDEO
|
||||||
|
Loading…
Reference in New Issue
Block a user