2021-12-11 23:47:54 +01:00
|
|
|
name: ci
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [master]
|
|
|
|
pull_request:
|
|
|
|
branches: [master]
|
|
|
|
|
|
|
|
jobs:
|
2021-12-11 23:53:29 +01:00
|
|
|
build:
|
2021-12-11 23:47:54 +01:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-12-12 00:07:42 +01:00
|
|
|
- name: Install dependencies
|
2021-12-11 23:47:54 +01:00
|
|
|
run:
|
|
|
|
sudo apt-get update &&
|
|
|
|
sudo apt-get install -y --no-install-recommends
|
2021-12-11 23:53:29 +01:00
|
|
|
libalut-dev
|
|
|
|
libconfig-dev
|
|
|
|
libcurl4-gnutls-dev
|
2021-12-11 23:47:54 +01:00
|
|
|
libnotify-dev
|
|
|
|
libopenal-dev
|
|
|
|
libopus-dev
|
2021-12-11 23:53:29 +01:00
|
|
|
libqrencode-dev
|
2021-12-11 23:47:54 +01:00
|
|
|
libsodium-dev
|
|
|
|
libvpx-dev
|
2021-12-12 00:07:42 +01:00
|
|
|
libx11-dev
|
2021-12-11 23:47:54 +01:00
|
|
|
python3-dev
|
2021-12-12 00:07:42 +01:00
|
|
|
pkg-config &&
|
2021-12-11 23:47:54 +01:00
|
|
|
git clone --depth=1 https://github.com/TokTok/c-toxcore &&
|
|
|
|
cd c-toxcore &&
|
2021-12-11 23:53:29 +01:00
|
|
|
cmake . -B_build -DBOOTSTRAP_DAEMON=OFF &&
|
|
|
|
cd _build &&
|
|
|
|
make -j4 &&
|
|
|
|
sudo make install
|
2021-12-11 23:47:54 +01:00
|
|
|
|
|
|
|
- name: Build toxic
|
2021-12-11 23:53:29 +01:00
|
|
|
run: make -j4
|
2021-12-12 00:07:42 +01:00
|
|
|
|
|
|
|
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
|