mirror of
https://github.com/nfstream/nfstream.git
synced 2026-05-16 11:15:03 +00:00
75 lines
2.3 KiB
YAML
75 lines
2.3 KiB
YAML
name: "CodeQL"
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
# The branches below must be a subset of the branches above
|
|
branches: [ master ]
|
|
schedule:
|
|
- cron: '15 12 * * 6'
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
language: ['python']
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
# Initializes the CodeQL tools for scanning.
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v1
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
- name: Build
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install autoconf automake libtool pkg-config gettext libjson-c-dev
|
|
sudo apt-get install libusb-1.0-0-dev libdbus-glib-1-dev libbluetooth-dev libnl-genl-3-dev flex bison
|
|
git clone --branch libgpg-error-1.39 https://github.com/gpg/libgpg-error
|
|
cd libgpg-error
|
|
./autogen.sh
|
|
./configure -enable-maintainer-mode --enable-static --enable-shared --with-pic --disable-doc --disable-nls
|
|
make
|
|
sudo make install
|
|
cd ..
|
|
rm -rf libgpg-error
|
|
git clone --branch libgcrypt-1.8.6 https://github.com/gpg/libgcrypt
|
|
cd libgcrypt
|
|
./autogen.sh
|
|
./configure -enable-maintainer-mode --enable-static --enable-shared --with-pic --disable-doc
|
|
make
|
|
sudo make install
|
|
cd ..
|
|
rm -rf libgcrypt
|
|
git clone --branch fanout https://github.com/tsnoam/libpcap
|
|
cd libpcap
|
|
./configure --enable-ipv6 --disable-universal --enable-dbus=no --without-libnl
|
|
make
|
|
sudo make install
|
|
cd ..
|
|
rm -rf libpcap
|
|
git clone --branch dev https://github.com/ntop/nDPI.git
|
|
cd nDPI
|
|
./autogen.sh
|
|
./configure
|
|
make
|
|
sudo mkdir /usr/local/include/ndpi
|
|
sudo cp -a src/include/. /usr/local/include/ndpi/
|
|
sudo cp example/ndpiReader /usr/local/bin/ndpiReader
|
|
sudo cp src/lib/libndpi.a /usr/local/lib/libndpi.a
|
|
cd ..
|
|
rm -rf nDPI
|
|
pip3 install wheel twine setuptools codecov
|
|
pip3 install -r requirements.txt
|
|
python3 setup.py bdist_wheel
|
|
|
|
- name: Perform CodeQL Analysis
|
|
uses: github/codeql-action/analyze@v1
|