mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Switch to the 'Unofficial Coverity Scan' Action.
Signed-off-by: Michael Keller <github@ike.ch>
This commit is contained in:
parent
70aefd4db4
commit
c78c91fb66
1 changed files with 11 additions and 26 deletions
37
.github/workflows/coverity-scan.yml
vendored
37
.github/workflows/coverity-scan.yml
vendored
|
@ -29,35 +29,20 @@ jobs:
|
||||||
qtpositioning5-dev qtscript5-dev qttools5-dev qttools5-dev-tools \
|
qtpositioning5-dev qtscript5-dev qttools5-dev qttools5-dev-tools \
|
||||||
qtquickcontrols2-5-dev libbluetooth-dev libmtp-dev
|
qtquickcontrols2-5-dev libbluetooth-dev libmtp-dev
|
||||||
|
|
||||||
- name: Download Coverity Build Tool
|
- name: configure environment
|
||||||
run: |
|
|
||||||
cd ..
|
|
||||||
wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "token=$TOKEN&project=Subsurface-divelog%2Fsubsurface" -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 build
|
|
||||||
env:
|
env:
|
||||||
SUBSURFACE_REPO_PATH: ${{ github.workspace }}
|
SUBSURFACE_REPO_PATH: ${{ github.workspace }}
|
||||||
run: |
|
run: |
|
||||||
cd ..
|
|
||||||
git config --global --add safe.directory ${SUBSURFACE_REPO_PATH}
|
git config --global --add safe.directory ${SUBSURFACE_REPO_PATH}
|
||||||
git config --global --add safe.directory ${SUBSURFACE_REPO_PATH}/libdivecomputer
|
git config --global --add safe.directory ${SUBSURFACE_REPO_PATH}/libdivecomputer
|
||||||
export PATH=`pwd`/cov-analysis-linux64/bin:$PATH
|
|
||||||
cov-build --dir cov-int bash -x subsurface/scripts/build.sh -desktop -build-with-webkit
|
|
||||||
|
|
||||||
- name: Submit the result to Coverity Scan
|
- name: run coverity scan
|
||||||
run: |
|
uses: vapier/coverity-scan-action@v1
|
||||||
cd ..
|
with:
|
||||||
tar czvf subsurface.tgz cov-int
|
project: Subsurface-divelog/subsurface
|
||||||
curl \
|
token: ${{ secrets.COVERITY_SCAN_TOKEN }}
|
||||||
--form token=$TOKEN \
|
email: glance@acc.umu.se
|
||||||
--form email=glance@acc.umu.se \
|
command: subsurface/scripts/build.sh -desktop -build-with-webkit
|
||||||
--form file=@subsurface.tgz \
|
working-directory: ${{ github.workspace }}/..
|
||||||
--form version=$(/scripts/get-version linux) \
|
version: $(/scripts/get-version linux)
|
||||||
--form description="Automatic scan on github actions" \
|
description: Automatic scan on github actions
|
||||||
https://scan.coverity.com/builds?project=Subsurface-divelog%2Fsubsurface
|
|
||||||
env:
|
|
||||||
TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }}
|
|
||||||
|
|
Loading…
Reference in a new issue