From 244a388e5861b22ceec3c126fb234bac903a1b1a Mon Sep 17 00:00:00 2001 From: Etienne Dechamps Date: Sat, 25 May 2024 22:01:32 +0100 Subject: [PATCH] Only install scream (DO NOT MERGE) --- .github/workflows/continuous-integration.yml | 81 +++----------------- 1 file changed, 9 insertions(+), 72 deletions(-) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 05e4eb3..432789e 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -1,77 +1,14 @@ on: [push, pull_request] jobs: - build: + test-scream: runs-on: windows-latest - strategy: - fail-fast: false - matrix: - include: - - msvc_config: x64-Release - msvc_arch: amd64 - build_type: RelWithDebInfo - - msvc_config: x86-Release - msvc_arch: amd64_x86 - build_type: RelWithDebInfo - - msvc_config: x64-Debug - msvc_arch: amd64 - build_type: Debug - - msvc_config: x86-Debug - msvc_arch: amd64_x86 - build_type: Debug steps: - - uses: actions/checkout@v2 - with: - submodules: recursive - # Required for version stamping (`git describe`) to work. - fetch-depth: 0 - - uses: ilammy/msvc-dev-cmd@v1 - with: - arch: ${{ matrix.msvc_arch }} - - run: cmake -S src -B src/out/build/${{ matrix.msvc_config }} -G Ninja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_INSTALL_PREFIX:PATH=${{ github.workspace }}/src/out/install/${{ matrix.msvc_config }} - - run: cmake --build src/out/build/${{ matrix.msvc_config }} - - run: cmake --install src/out/build/${{ matrix.msvc_config }} - - uses: actions/upload-artifact@v2 - with: - name: FlexASIO-${{ matrix.msvc_config }} - path: src/out/install/${{ matrix.msvc_config }}/ - # https://github.com/actions/virtual-environments/issues/2528 - # TODO: Scream only provides an output device. See if we can use a - # different virtual audio driver that provides a virtual input device as - # well. - - name: Install Scream - shell: powershell - run: | - Invoke-WebRequest https://github.com/duncanthrax/scream/releases/download/4.0/Scream4.0.zip -OutFile Scream4.0.zip - Expand-Archive -Path Scream4.0.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 - # Starting from windows-2022, the Windows Audio engine doesn't seem to - # be started by default anymore. - run: net start audiosrv - # Obviously this doesn't do any kind of thorough testing. We just want to - # make sure that the executables are not obviously broken. - - run: src/out/install/${{ matrix.msvc_config }}/bin/PortAudioDevices.exe - - run: src/out/install/${{ matrix.msvc_config }}/bin/FlexASIOTest.exe --verbose - installer: - runs-on: windows-latest - needs: build - steps: - - uses: actions/checkout@v2 - with: - submodules: recursive - # Required for version stamping (`git describe`) to work. - fetch-depth: 0 - - uses: actions/download-artifact@v2 - with: - name: FlexASIO-x64-Release - path: src/out/install/x64-Release - - uses: actions/download-artifact@v2 - with: - name: FlexASIO-x86-Release - path: src/out/install/x86-Release - - run: cmake -P installer.cmake - working-directory: src - - uses: actions/upload-artifact@v2 - with: - name: FlexASIO-installer - path: src/out/installer/* + - 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 + - shell: powershell + run: Import-Certificate -FilePath Scream\Install\driver\x64\Scream.cat -CertStoreLocation Cert:\LocalMachine\TrustedPublisher + - shell: powershell + run: Scream\Install\helpers\devcon-x64.exe install Scream\Install\driver\x64\Scream.inf *Scream \ No newline at end of file