Skip to content

Commit 2a94dd7

Browse files
committed
CI - debug api tests on windows
1 parent 8100a1d commit 2a94dd7

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

.github/workflows/build.yml

+15-13
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ jobs:
108108
gem install test-unit
109109
if: matrix.os == 'windows-latest'
110110

111-
# Install gems Linux/Max - needs sudo
111+
# Install gems Linux - needs sudo
112112
- name: Setup Ruby Gems
113113
working-directory: ${{github.workspace}}/app
114114
run: |
@@ -304,21 +304,22 @@ jobs:
304304
ctest --verbose
305305
if: matrix.os == 'ubuntu-latest'
306306

307-
- name: API Tests Windows - Install Scream Audio Device
308-
shell: powershell
307+
- name: Debug API Tests Directory (Windows)
308+
shell: cmd
309309
run: |
310-
Start-Service audio*
311-
Invoke-WebRequest https://github.com/duncanthrax/scream/releases/download/3.6/Scream3.6.zip -OutFile C:\Scream3.6.zip
312-
Expand-7ZipArchive -Path C:\Scream3.6.zip -DestinationPath C:\Scream
313-
$cert = (Get-AuthenticodeSignature C:\Scream\Install\driver\Scream.sys).SignerCertificate
314-
$store = [System.Security.Cryptography.X509Certificates.X509Store]::new("TrustedPublisher", "LocalMachine")
315-
$store.Open("ReadWrite")
316-
$store.Add($cert)
317-
$store.Close()
318-
cd C:\Scream\Install\driver
319-
C:\Scream\Install\helpers\devcon install Scream.inf *Scream
310+
echo Current directory is %CD%
311+
echo GITHUB_WORKSPACE is %GITHUB_WORKSPACE%
312+
echo Listing contents of %GITHUB_WORKSPACE%\app\build:
313+
dir "%GITHUB_WORKSPACE%\app\build"
314+
if not exist "%GITHUB_WORKSPACE%\app\build\api-tests" (
315+
echo "Directory %GITHUB_WORKSPACE%\app\build\api-tests does not exist. Creating it now."
316+
mkdir "%GITHUB_WORKSPACE%\app\build\api-tests"
317+
) else (
318+
echo "Directory %GITHUB_WORKSPACE%\app\build\api-tests exists."
319+
)
320320
if: matrix.os == 'windows-latest'
321321

322+
# --- Windows API tests step ---
322323
- name: API Tests - Windows
323324
shell: cmd
324325
working-directory: ${{ github.workspace }}\app\build\api-tests
@@ -327,6 +328,7 @@ jobs:
327328
run: ctest --verbose
328329
if: matrix.os == 'windows-latest'
329330

331+
330332
- name: Archive Logs
331333
uses: actions/upload-artifact@v4
332334
if: ${{ always() }}

0 commit comments

Comments
 (0)