Skip to content

Test Nim with Windows Defender #702

Test Nim with Windows Defender

Test Nim with Windows Defender #702

Workflow file for this run

name: Test Nim with Windows Defender
on:
pull_request:
push:
schedule:
- cron: '50 8 * * *'
jobs:
run:
runs-on: windows-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: start Windows Defender service
shell: powershell
run: 'Set-Service -Name wuauserv -StartupType Manual -Status Running'
- name: update signatures
shell: cmd
run: '"C:\Program Files\Windows Defender\MpCmdRun.exe" -SignatureUpdate'
- name: fetch x64 archive from nightlies
shell: powershell
run: |
Invoke-WebRequest https://github.com/nim-lang/nightlies/releases/download/latest-devel/windows_x64.zip -OutFile nim.zip
- name: scan x64 archive from nightlies
shell: cmd
run: |
"C:\Program Files\Windows Defender\MpCmdRun.exe" -Scan -ScanType 3 -DisableRemediation -File "%CD%\nim.zip"
- name: VirusTotal Scan
uses: crazy-max/ghaction-virustotal@v4
with:
vt_api_key: ${{ secrets.VT_API_KEY }}
files: |
nim.zip