Test Nim with Windows Defender #702
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |