1
0
Fork 0

AV scan the macOS package prior to upload

This commit is contained in:
krcroft 2020-04-20 16:55:11 -07:00 committed by Patryk Obara
parent e6311d36b8
commit e62d903d6a

View file

@ -144,6 +144,15 @@ jobs:
-srcfolder dist \
-ov -format UDZO "dosbox-staging-macOS-${{ env.VERSION }}.dmg"
- name: AV scan
run: |
set -x
brew install clamav > /dev/null
clamconf=/usr/local/etc/clamav/freshclam.conf
mv -f "$clamconf".sample "$clamconf"
sed -ie 's/^Example/#Example/g' "$clamconf"
freshclam --quiet && freshclam
clamscan --heuristic-scan-precedence=yes --recursive --infected .
- name: Upload disk image
uses: actions/upload-artifact@master
# GitHub automatically zips the artifacts, and there's no option