Merge pull request #710 from linkchecker/clamav-cdn-relief

Cache ClamAV signatures
This commit is contained in:
Marius Gedminas 2023-01-01 12:15:37 +02:00 committed by GitHub
commit d179b916b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,10 +32,18 @@ jobs:
steps:
- name: Install OS dependencies
run: |
sudo apt update
sudo apt install -y clamav-daemon geoip-database libgeoip-dev gettext
sudo apt-get update
sudo apt-get install -y clamav-daemon geoip-database libgeoip-dev gettext
- name: ClamAV cache
id: cache-clamav
uses: actions/cache@v3
with:
path: /var/lib/clamav
key: clamav-v1
- name: Download the ClamAV signature database
if: ${{ steps.cache-clamav.outputs.cache-hit != 'true' }}
run: |
sudo service clamav-freshclam stop
sudo freshclam
@ -92,7 +100,7 @@ jobs:
- name: Install Ubuntu packages
run: |
sudo apt install -y graphviz mandoc
sudo apt-get install -y graphviz mandoc
- name: Set up Python
uses: actions/setup-python@v4