Skip to content

Commit

Permalink
ci: Set system date time after downloading virtual audio device (#1770)
Browse files Browse the repository at this point in the history
# Description

On executing the windows tests, a virtual audio device is needed, which
can only be installed with a certificate valid to a specific date.
Recently the tests failed, as the date time was set before downloading
and therefore threw a `NotTimeValid` error. This fixes that by
downloading the source first, setting the date time and then installing
it.
  • Loading branch information
Gustl22 authored Mar 18, 2024
1 parent 1b1a0cf commit d306936
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,12 @@ jobs:
- uses: bluefireteam/melos-action@main
- name: Start audio server
run: net start audiosrv
- name: Download virtual audio device
# Download has to be done before setting the system date time.
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
- 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: |
Expand All @@ -302,8 +308,6 @@ jobs:
- 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)
Expand Down

0 comments on commit d306936

Please sign in to comment.