Skip to content

Commit

Permalink
ci(windows): Fix Virtual audio device Scream (#1570)
Browse files Browse the repository at this point in the history
# Description

- Update virtual audio device Scream to v4.0
- Add Workaround to install certificate of Scream
  • Loading branch information
Gustl22 authored Aug 2, 2023
1 parent 13639d1 commit e598464
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,24 +250,26 @@ jobs:
windows:
runs-on: windows-latest
timeout-minutes: 30
if: false # FIXME(gustl22): Revert to "inputs.enable_windows" when virtual audio device can be installed (#1573)
if: inputs.enable_windows
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ inputs.flutter_version }}
channel: 'stable'
- uses: bluefireteam/melos-action@main

- name: Start audio server
run: net start audiosrv
- name: Install virtual audio device
shell: powershell
# TODO(gustl22): Remove workaround of setting the time when virtual audio device certificate is valid again (#1573)
run: |
Invoke-WebRequest https://github.com/duncanthrax/scream/releases/download/3.9/Scream3.9.zip -OutFile Scream3.9.zip
Expand-Archive -Path Scream3.9.zip -DestinationPath Scream
Import-Certificate -FilePath Scream\Install\driver\x64\Scream.cat -CertStoreLocation Cert:\LocalMachine\TrustedPublisher
Invoke-WebRequest https://github.com/duncanthrax/scream/releases/download/4.0/Scream4.0.zip -OutFile Scream.zip
Expand-Archive -Path Scream.zip -DestinationPath Scream
Set-Date (Get-Date "2023-07-04 12:00:00")
Import-Certificate -FilePath Scream\Install\driver\x64\Scream.cat -CertStoreLocation Cert:\LocalMachine\TrustedPublisher
Scream\Install\helpers\devcon-x64.exe install Scream\Install\driver\x64\Scream.inf *Scream
w32tm /resync /force; $currentDate = Get-Date; Write-Host "Current Date: $currentDate";
- name: Run Flutter integration tests
shell: powershell
working-directory: ./packages/audioplayers/example
Expand Down

0 comments on commit e598464

Please sign in to comment.