From e3bbbb87ab3adfa61526dfbb49036063fbf04b35 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Astor?= Date: Sun, 16 Feb 2020 21:48:28 +0100 Subject: [PATCH] :wrench: [coverity] --- .github/workflows/coverity.yml | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 9f70d6ec..4fc4a4fb 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -13,10 +13,29 @@ jobs: if: "contains(github.event.head_commit.message, '[coverity]')" steps: - - uses: actions/checkout@v1 - - name: submodules + - name: Checkout + uses: actions/checkout@v1 + + - name: Init submodules run: git submodule update --init util ast - - name: download coverity tool - run: curl https://scan.coverity.com/download/cxx/linux64 - - name: make + + - name: Download tool + run: | + wget -q https://scan.coverity.com/download/cxx/linux64 --post-data "${{ token=secrets.COVERITY_TOKEN }}&project=fennecdjay/Gwion" -O cov-analysis-linux64.tar.gz + mkdir cov-analysis-linux64 + tar xzf cov-analysis-linux64.tar.gz --strip 1 -C cov-analysis-linux64 + + - name: Build run: cov-build --dir cov-int make + + - name: Submit + run: | + tar czvf gwion.tgz cov-int + curl \ + --form project=dennecdjay/Gwion \ + --form token=${{ secrets.COVERITY_TOKEN }} \ + --form email=astor.jeremie@wanadoo.fr \ + --form file=@gwion.tgz \ + --form version=trunk \ + --form description="`./ruby -v`" \ + https://scan.coverity.com/builds?project=fennecdjay/Gwion -- 2.43.0