mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 19:50:12 +01:00
53 lines
1.4 KiB
YAML
53 lines
1.4 KiB
YAML
name: Build Audio Library (Windows)
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
paths:
|
|
- "libs/audio/**"
|
|
- ".github/workflows/windows-audio-build.yml"
|
|
|
|
jobs:
|
|
build-windows:
|
|
runs-on: windows-latest
|
|
|
|
env:
|
|
VCPKG_DEFAULT_TRIPLET: x64-windows
|
|
VCPKG_INSTALLATION_ROOT: ${{ github.workspace }}\vcpkg
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup MSVC Build Environment
|
|
uses: microsoft/setup-msbuild@v2
|
|
|
|
- name: Install vcpkg
|
|
run: |
|
|
git clone https://github.com/microsoft/vcpkg.git
|
|
.\vcpkg\bootstrap-vcpkg.bat
|
|
|
|
- name: Install dependencies with vcpkg
|
|
run: |
|
|
.\vcpkg\vcpkg.exe install portaudio:x64-windows libsndfile:x64-windows libsamplerate:x64-windows
|
|
|
|
- name: Add vcpkg include/lib paths to environment
|
|
run: |
|
|
echo "VCPKG_INCLUDE_PATH=${{ github.workspace }}\vcpkg\installed\x64-windows\include" >> $env:GITHUB_ENV
|
|
echo "VCPKG_LIB_PATH=${{ github.workspace }}\vcpkg\installed\x64-windows\lib" >> $env:GITHUB_ENV
|
|
|
|
- name: Build audio library
|
|
working-directory: libs/audio
|
|
run: |
|
|
nmake /f Makefile all
|
|
|
|
- name: List build outputs
|
|
working-directory: libs/audio
|
|
run: |
|
|
dir
|
|
|
|
- name: Clean build artifacts
|
|
working-directory: libs/audio
|
|
run: |
|
|
nmake /f Makefile clean
|