mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 11:40:13 +01:00
Update python-app.yml
This commit is contained in:
55
.github/workflows/python-app.yml
vendored
55
.github/workflows/python-app.yml
vendored
@@ -25,6 +25,7 @@ jobs:
|
|||||||
brew update
|
brew update
|
||||||
brew install portaudio libsndfile libsamplerate pkg-config
|
brew install portaudio libsndfile libsamplerate pkg-config
|
||||||
|
|
||||||
|
# Use MSYS2 for Windows audio library build with ASIO support
|
||||||
- name: Set up MSYS2 (Windows)
|
- name: Set up MSYS2 (Windows)
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
uses: msys2/setup-msys2@v2
|
uses: msys2/setup-msys2@v2
|
||||||
@@ -46,38 +47,40 @@ jobs:
|
|||||||
mingw-w64-x86_64-cmake
|
mingw-w64-x86_64-cmake
|
||||||
mingw-w64-x86_64-pkg-config
|
mingw-w64-x86_64-pkg-config
|
||||||
|
|
||||||
# Build PortAudio from source with ASIO support (Windows only)
|
# Download pre-built PortAudio with ASIO support (Windows only)
|
||||||
- name: Build PortAudio with ASIO support (Windows)
|
- name: Download pre-built PortAudio with ASIO (Windows)
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
shell: msys2 {0}
|
shell: msys2 {0}
|
||||||
run: |
|
run: |
|
||||||
# Download PortAudio source
|
# Create directory for pre-built libraries
|
||||||
curl -L http://files.portaudio.com/archives/pa_stable_v190700_20210406.tgz -o portaudio.tgz
|
mkdir -p /mingw64/prebuilt
|
||||||
tar -xzf portaudio.tgz
|
cd /mingw64/prebuilt
|
||||||
cd portaudio
|
|
||||||
|
|
||||||
# Configure with ASIO and other Windows audio APIs
|
# Try multiple sources for pre-built PortAudio with ASIO
|
||||||
cd build
|
echo "=== Attempting to download pre-built PortAudio with ASIO ==="
|
||||||
cmake .. \
|
|
||||||
-G "MSYS Makefiles" \
|
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
|
||||||
-DPA_USE_ASIO=ON \
|
|
||||||
-DPA_USE_DS=ON \
|
|
||||||
-DPA_USE_WMME=ON \
|
|
||||||
-DPA_USE_WASAPI=ON \
|
|
||||||
-DPA_BUILD_SHARED=ON \
|
|
||||||
-DPA_BUILD_STATIC=ON \
|
|
||||||
-DCMAKE_INSTALL_PREFIX=/mingw64 \
|
|
||||||
-DCMAKE_POLICY_VERSION_MINIMUM=3.5
|
|
||||||
|
|
||||||
# Build and install (this will fail if ASIO SDK is missing, but continue anyway)
|
# Option 1: Try PortAudio Windows binaries
|
||||||
make -j$(nproc) || echo "Build failed, likely due to missing ASIO SDK - continuing with system PortAudio"
|
curl -L https://github.com/PortAudio/portaudio/releases/download/v19.7.0/pa_stable_v190700_20210406_msvc.zip -o portaudio_msvc.zip 2>/dev/null || echo "MSVC binaries not available"
|
||||||
make install 2>/dev/null || echo "Install failed - using system PortAudio"
|
|
||||||
|
|
||||||
# Verify what we have
|
# Option 2: Try community builds
|
||||||
echo "=== PortAudio library verification ==="
|
curl -L https://github.com/spatialaudio/portaudio-binaries/releases/download/v19.7.0/portaudio-v19.7.0-win64.zip -o portaudio_win64.zip 2>/dev/null || echo "Community binaries not available"
|
||||||
find /mingw64 -name "*portaudio*" -type f | head -10
|
|
||||||
pkg-config --exists portaudio && echo "PortAudio pkg-config found" || echo "No PortAudio pkg-config"
|
# Option 3: Try a known working ASIO-enabled build
|
||||||
|
curl -L https://www.un4seen.com/files/z/1/bass24-win32.zip -o bass_example.zip 2>/dev/null || echo "Alternative audio library not available"
|
||||||
|
|
||||||
|
# Check what we downloaded
|
||||||
|
ls -la *.zip 2>/dev/null || echo "No zip files downloaded"
|
||||||
|
|
||||||
|
# Extract what we have
|
||||||
|
for zip_file in *.zip; do
|
||||||
|
if [ -f "$zip_file" ]; then
|
||||||
|
echo "Extracting $zip_file"
|
||||||
|
unzip -q "$zip_file" 2>/dev/null || echo "Failed to extract $zip_file"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
# Look for PortAudio files
|
||||||
|
find . -name "*portaudio*" -o -name "*asio*" 2>/dev/null || echo "No PortAudio/ASIO files found in downloads"
|
||||||
|
|
||||||
- name: Verify ASIO support (Windows)
|
- name: Verify ASIO support (Windows)
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
|
|||||||
Reference in New Issue
Block a user