Skip to content

Commit

Permalink
asio suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeier committed Jan 20, 2024
1 parent 59f75d9 commit 52ee1d3
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/build-libs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,9 @@ jobs:
runs-on: windows-2022
strategy:
matrix:
use-asio: ["OFF", "ON"]
asio-suffix: ["", "-asio"]
# TODO: matrix with x64 and Win32
env:
ASIO_SUFFIX: "${{ matrix.use-asio == 'ON' && '-asio' || '' }}"
# Reproducible build by avoiding time stamp
LDFLAGS: "/Brepro"
steps:
Expand All @@ -58,27 +57,27 @@ jobs:
path: portaudio
# The next portaudio release will have an auto-download feature:
- name: download and extract ASIO SDK
if: ${{ matrix.use-asio == 'ON' }}
if: matrix.asio-suffix
run: |
curl -L -o asiosdk.zip https://www.steinberg.net/asiosdk
7z x asiosdk.zip
- name: cmake configure
run: |
cmake -S portaudio -B build -A x64 -D PA_USE_ASIO=${{ matrix.use-asio }}
cmake -S portaudio -B build -A x64 -D PA_USE_ASIO=${{ matrix.asio-suffix && 'ON' || 'OFF' }}
- name: cmake build
run: |
cmake --build build --config Release
- name: rename DLL
run: |
mv build/Release/portaudio_x64.dll libportaudio64bit$ASIO_SUFFIX.dll
mv build/Release/portaudio_x64.dll libportaudio64bit${{ matrix.asio-suffix }}.dll
- name: show some information about DLL
run: |
ldd libportaudio64bit$ASIO_SUFFIX.dll
ldd libportaudio64bit${{ matrix.asio-suffix }}.dll
- name: upload DLL
uses: actions/upload-artifact@v3
with:
name: windows-x64-dll$ASIO_SUFFIX
path: libportaudio64bit$ASIO_SUFFIX.dll
name: windows-x64-dll${{ matrix.asio-suffix }}
path: libportaudio64bit${{ matrix.asio-suffix }}.dll

push:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 52ee1d3

Please sign in to comment.