Celix Coverity Scan #234
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Celix Coverity Scan | |
on: | |
schedule: | |
- cron: '0 0 * * 0' # Weekly at 00:00 UTC | |
workflow_dispatch: | |
jobs: | |
latest: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v3.3.0 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -yq --no-install-recommends \ | |
build-essential \ | |
curl \ | |
uuid-dev \ | |
libzip-dev \ | |
libjansson-dev \ | |
libcurl4-openssl-dev \ | |
default-jdk \ | |
cmake \ | |
libffi-dev \ | |
libxml2-dev \ | |
rapidjson-dev \ | |
libavahi-compat-libdnssd-dev \ | |
libcivetweb-dev \ | |
civetweb | |
- name: Download Coverity Build Tool | |
run: | | |
mkdir -p build/cov-analysis-linux64 | |
cd build | |
wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$TOKEN&project=Apache+Celix" -O cov-analysis-linux64.tar.gz | |
tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64 | |
env: | |
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} | |
- name: Build | |
env: | |
BUILD_OPTIONS: | | |
-DBUILD_EXPERIMENTAL=ON | |
-DENABLE_TESTING=ON | |
-DRSA_JSON_RPC=ON | |
-DRSA_REMOTE_SERVICE_ADMIN_SHM_V2=ON | |
-DSHELL_BONJOUR=ON | |
run: | | |
cd build | |
cmake ${BUILD_OPTIONS} .. | |
export PATH=`pwd`/cov-analysis-linux64/bin:$PATH | |
cov-build --dir cov-int make | |
- name: Submit the result to Coverity Scan | |
run: | | |
cd build | |
tar czvf celix.tgz cov-int | |
curl \ | |
--form project=Apache+Celix \ | |
--form token=$TOKEN \ | |
--form email=a.broekhuis@gmail.com \ | |
--form file=@celix.tgz \ | |
--form version=master \ | |
https://scan.coverity.com/builds?project=Apache+Celix | |
env: | |
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} |