]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
build: cache coverity toolchain
authorVincent Bernat <vincent@bernat.ch>
Mon, 22 Mar 2021 09:30:08 +0000 (10:30 +0100)
committerVincent Bernat <vincent@bernat.ch>
Mon, 22 Mar 2021 09:30:08 +0000 (10:30 +0100)
.github/workflows/coverity.yml

index 0a616677e28c9d541e0f836de00008246590a2c7..b88500c33a25546e145278069220da8eb72862d0 100644 (file)
@@ -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" \