-
Notifications
You must be signed in to change notification settings - Fork 76
31 lines (31 loc) · 1.59 KB
/
continuous-integration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
on: [push, pull_request]
jobs:
test-scream:
runs-on: windows-latest
steps:
- run: net start audiosrv
- shell: powershell
run: Invoke-WebRequest https://github.com/duncanthrax/scream/releases/download/4.0/Scream4.0.zip -OutFile Scream4.0.zip
- shell: powershell
run: Expand-Archive -Path Scream4.0.zip -DestinationPath Scream
- run: openssl req -batch -verbose -x509 -newkey rsa -keyout ScreamCertificate.pvk -out ScreamCertificate.cer -nodes -addext extendedKeyUsage=codeSigning
- run: openssl x509 -in ScreamCertificate.cer -text
- run: 'openssl pkcs12 -export -nodes -in ScreamCertificate.cer -inkey ScreamCertificate.pvk -out ScreamCertificate.pfx -passout pass:'
- uses: ilammy/msvc-dev-cmd@v1
- run: signtool sign /v /fd SHA256 /f ScreamCertificate.pfx Scream\Install\driver\x64\Scream.sys
- run: Inf2cat.exe /driver:Scream\Install\driver\x64\
- run: signtool sign /v /fd SHA256 /f ScreamCertificate.pfx Scream\Install\driver\x64\Scream.cat
- shell: powershell
run: Import-Certificate -FilePath ScreamCertificate.cer -CertStoreLocation Cert:\LocalMachine\root
- shell: powershell
run: Install-Module -Name PShot -AcceptLicense -Force
- shell: powershell
run: |
Import-Module -Name PShot
Start-Job { Get-PShot -Directory . -Delay 30 }
Scream\Install\helpers\devcon-x64.exe install Scream\Install\driver\x64\Scream.inf *Scream
continue-on-error: true
timeout-minutes: 1
- uses: actions/upload-artifact@v2
with:
path: 'PShot*'