forked from Green-Sky/tomato
Squashed 'external/toxcore/c-toxcore/' content from commit 67badf69
git-subtree-dir: external/toxcore/c-toxcore git-subtree-split: 67badf69416a74e74f6d7eb51dd96f37282b8455
This commit is contained in:
51
.github/workflows/coverity-scan.yml
vendored
Normal file
51
.github/workflows/coverity-scan.yml
vendored
Normal file
@ -0,0 +1,51 @@
|
||||
name: coverity-scan
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 10 * * *' # Once a day
|
||||
|
||||
jobs:
|
||||
latest:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: recursive
|
||||
- name: Install libraries
|
||||
run:
|
||||
sudo apt-get update &&
|
||||
sudo apt-get install -y --no-install-recommends
|
||||
libopus-dev
|
||||
libsodium-dev
|
||||
libvpx-dev
|
||||
|
||||
- name: Download Coverity Build Tool
|
||||
run: |
|
||||
wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$TOKEN&project=TokTok/c-toxcore" -O cov-analysis-linux64.tar.gz
|
||||
mkdir cov-analysis-linux64
|
||||
tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64
|
||||
env:
|
||||
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
|
||||
|
||||
- name: Run autoreconf
|
||||
run: autoreconf -fi
|
||||
|
||||
- name: Configure
|
||||
run: ./configure
|
||||
|
||||
- name: Build with cov-build
|
||||
run: cov-analysis-linux64/bin/cov-build --dir cov-int make
|
||||
|
||||
- name: Submit the result to Coverity Scan
|
||||
run:
|
||||
tar czvf c-toxcore.tgz cov-int &&
|
||||
curl
|
||||
--form project=TokTok/c-toxcore
|
||||
--form token=$TOKEN
|
||||
--form email=iphydf@gmail.com
|
||||
--form file=@c-toxcore.tgz
|
||||
--form version="$(git rev-list --count HEAD)"
|
||||
--form description="CI build of $(git rev-parse --abbrev-ref HEAD) branch"
|
||||
https://scan.coverity.com/builds
|
||||
env:
|
||||
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
|
Reference in New Issue
Block a user