From c2e17d2c3ea8569f4b84ad0807523ef7b68235c7 Mon Sep 17 00:00:00 2001 From: Anthony Samms Date: Mon, 15 Sep 2025 12:21:53 -0400 Subject: [PATCH] Update build_audio.yml --- .github/workflows/build_audio.yml | 32 +++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_audio.yml b/.github/workflows/build_audio.yml index cfb2030..fccd463 100644 --- a/.github/workflows/build_audio.yml +++ b/.github/workflows/build_audio.yml @@ -38,13 +38,36 @@ jobs: - name: Setup MSVC environment uses: microsoft/setup-msbuild@v2 - - name: Check dependencies - run: make check-deps + - name: Setup Developer Command Prompt + uses: ilammy/msvc-dev-cmd@v1 + with: + arch: x64 + + - name: Debug Makefile and environment + run: | + echo "Current directory:" + dir + echo "Makefile exists:" + if exist Makefile (echo Yes) else (echo No) + echo "Available make targets:" + make help || echo "Help target not available" + echo "VCPKG_ROOT: %VCPKG_ROOT%" + echo "VCPKG_INSTALLATION_ROOT: %VCPKG_INSTALLATION_ROOT%" shell: cmd working-directory: libs/audio env: VCPKG_INSTALLATION_ROOT: ${{ env.VCPKG_ROOT }} + - name: Check dependencies + run: | + echo "Attempting to check dependencies..." + make check-deps || echo "check-deps target failed or not available, continuing..." + shell: cmd + working-directory: libs/audio + continue-on-error: true + env: + VCPKG_INSTALLATION_ROOT: ${{ env.VCPKG_ROOT }} + - name: Build audio library run: make all shell: cmd @@ -97,6 +120,11 @@ jobs: restore-keys: | vcpkg-${{ matrix.architecture }}-${{ matrix.configuration }}- + - name: Setup MSVC environment and Developer Command Prompt + uses: ilammy/msvc-dev-cmd@v1 + with: + arch: ${{ matrix.architecture }} + - name: Install vcpkg dependencies run: | vcpkg install portaudio:${{ matrix.architecture }}-windows