AV scan the macOS package prior to upload
This commit is contained in:
parent
e6311d36b8
commit
e62d903d6a
1 changed files with 9 additions and 0 deletions
9
.github/workflows/macos.yml
vendored
9
.github/workflows/macos.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue