Skip to content

Commit

Permalink
ci: Disable Hyper-V time sync for Windows, reenable Scream as Virtual…
Browse files Browse the repository at this point in the history
… Audio Device (#1608)

## Related Issues

See #1570, #1599, #1603

(cherry picked from commit a524d7f)
  • Loading branch information
Gustl22 committed Sep 26, 2023
1 parent 83d5193 commit 79d6439
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,18 +260,25 @@ jobs:
- uses: bluefireteam/melos-action@main
- name: Start audio server
run: net start audiosrv
# TODO(gustl22): Remove sound-ci-helpers and enable virtual audio device, when certificate is valid again (#1573)
- uses: LABSN/sound-ci-helpers@v1
#- name: Install virtual audio device
# timeout-minutes: 1
# shell: powershell
# run: |
# Invoke-WebRequest https://github.com/duncanthrax/scream/releases/download/4.0/Scream4.0.zip -OutFile Scream.zip
# Expand-Archive -Path Scream.zip -DestinationPath Scream
# 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
- name: Disable time sync with Hyper-V & setting system date time (#1573)
# TODO(gustl22): Remove workaround of setting the time when virtual audio device certificate is valid again (#1573)
run: |
Set-Service -Name vmictimesync -Status stopped -StartupType disabled
Set-ItemProperty HKLM:\SYSTEM\CurrentControlSet\services\W32Time\Parameters -Name 'Type' -Value 'NoSync'
net stop w32time; Set-Date (Get-Date "2023-07-04 12:00:00")
- name: Install virtual audio device
timeout-minutes: 1
run: |
Invoke-WebRequest https://github.com/duncanthrax/scream/releases/download/4.0/Scream4.0.zip -OutFile Scream.zip
Expand-Archive -Path Scream.zip -DestinationPath Scream
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
- name: Resetting system date time (#1573)
run: |
Set-Service -Name vmictimesync -Status running -StartupType automatic
Set-ItemProperty HKLM:\SYSTEM\CurrentControlSet\services\W32Time\Parameters -Name 'Type' -Value 'NTP'
net start w32time; w32tm /resync /force; $currentDate = Get-Date; Write-Host "Current System Date: $currentDate";
- name: Run Flutter integration tests
shell: powershell
working-directory: ./packages/audioplayers/example
# Need to execute lib and app tests one by one, see: https://github.com/flutter/flutter/issues/101031
run: |
Expand Down

0 comments on commit 79d6439

Please sign in to comment.