From 2e757cfeeec8593acbb46ceef493307a3130453a Mon Sep 17 00:00:00 2001 From: Martin Pulec Date: Thu, 9 Apr 2020 09:15:28 +0200 Subject: [PATCH] Coverity Workflow: cache tool Note: this will currently not work for nightly coverity builds since cache action is not supported for scheduled jobs. --- .github/workflows/coverity-scan.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/coverity-scan.yml b/.github/workflows/coverity-scan.yml index da6268e2f..cb4a309de 100644 --- a/.github/workflows/coverity-scan.yml +++ b/.github/workflows/coverity-scan.yml @@ -16,11 +16,19 @@ jobs: coverity_token: ${{ secrets.coverity_token }} steps: + - name: Cache Coverity build tool + id: cache-coverity-tool + uses: actions/cache@v1 + with: + path: '/tmp/cov-analysis' + key: cache-coverity-tool - name: Download Coverity build tool + if: steps.cache-coverity-tool.outputs.cache-hit != 'true' run: | cd /tmp wget --no-verbose https://scan.coverity.com/download/linux64 --post-data "token=$coverity_token&project=UltraGrid" -O coverity_tool.tgz tar xaf coverity_tool.tgz + mv /tmp/cov-analysis* /tmp/cov-analysis - uses: actions/checkout@v1 with: submodules: true @@ -30,7 +38,7 @@ jobs: run: ./autogen.sh --enable-qt --with-cuda-host-compiler=gcc-6 --enable-plugins --with-live555=/usr/local - name: Build with cov-build run: | - /tmp/cov-analysis*/bin/cov-build --dir cov-int make -j4 + /tmp/cov-analysis/bin/cov-build --dir cov-int make -j4 - name: Submit the result to Coverity Scan run: | tar caf ultragrid.tar.xz cov-int