From b5dcbbf2bc4057e7140c0a8449bb9c1db008bb7e Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 22 Mar 2021 10:30:08 +0100 Subject: [PATCH] build: cache coverity toolchain --- .github/workflows/coverity.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/coverity.yml b/.github/workflows/coverity.yml index 0a616677..b88500c3 100644 --- a/.github/workflows/coverity.yml +++ b/.github/workflows/coverity.yml @@ -2,7 +2,7 @@ name: Coverity Scan on: workflow_dispatch: schedule: - - cron: '0 9 * * 5' # Weekly at 09:00 UTC on Thursday + - cron: '0 9 * * 2,5' jobs: build: @@ -11,9 +11,15 @@ jobs: - uses: actions/checkout@v2 with: submodules: true + - uses: actions/cache@v2 + id: coverity-toolchain-cache + with: + path: cov-analysis-linux64 + key: ${{ runner.os }}-coverity - name: Install stuff run: ./tests/ci/install.sh - name: Download Coverity Scan + if: steps.coverity-toolchain-cache.outputs.cache-hit != 'true' run: | wget -q https://scan.coverity.com/download/cxx/linux64 \ --post-data "token=$TOKEN&project=vincentbernat%2Flldpd" \ -- 2.39.5