Skip to content

Commit

Permalink
enable DLLs of static build, seventh try
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastian Bechtold committed Dec 30, 2024
1 parent 98daed0 commit 1fff473
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions .github/workflows/build-libs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,40 +104,29 @@ jobs:
strategy:
matrix:
include:
- triplet: "x64-windows-static"
- triplet: "x64-windows"
libname: "libsndfile_x64.dll"
build-system: cmake
cmake-options: >-
-DBUILD_SHARED_LIBS=ON
- triplet: "x86-windows-static"
- triplet: "x86-windows"
libname: "libsndfile_x86.dll"
build-system: cmake
cmake-options: >-
-DBUILD_SHARED_LIBS=ON
- triplet: "arm64-windows-static"
- triplet: "arm64-windows"
libname: "libsndfile_arm64.dll"
build-system: cmake
cmake-options: >-
-DBUILD_SHARED_LIBS=ON
fail-fast: false
env:
VCPKG_KEEP_ENV_VARS: CFLAGS;CXXFLAGS
CFLAGS: -DBUILD_SHARED_LIBS=ON
CXXFLAGS: -DBUILD_SHARED_LIBS=ON
steps:
- uses: actions/checkout@v3
- name: Update VCPKG
run: "vcpkg update"
- name: Install dependencies
run: vcpkg install libvorbis:${{ matrix.triplet }}-static libflac:${{ matrix.triplet }}-static opus:${{ matrix.triplet }}-static mp3lame:${{ matrix.triplet }}-static mpg123:${{ matrix.triplet }}-static libvorbis:${{ matrix.triplet }}-static libflac:${{ matrix.triplet }}-static opus:${{ matrix.triplet }}-static mp3lame:${{ matrix.triplet }}-static mpg123:${{ matrix.triplet }}-static
- name: Build library
run: "vcpkg install libsndfile:${{ matrix.triplet }} --overlay-triplets=triplets"
run: "vcpkg install libsndfile:${{ matrix.triplet }}"
- name: Debug Output 0
run: "dir c:/vcpkg/installed/${{ matrix.triplet }}/share"
- name: Debug Output 1
run: "dir c:/vcpkg/installed/${{ matrix.triplet }}/lib"
- name: Debug Output 2
run: "dir c:/vcpkg/installed/${{ matrix.triplet }}/"
- name: Copy library
run: "Copy-Item c:/vcpkg/installed/x64-windows/bin/sndfile.dll -Destination ${{ matrix.libname }}"
run: "Copy-Item c:/vcpkg/installed/${{ matrix.triplet }}/bin/sndfile.dll -Destination ${{ matrix.libname }}"
- uses: actions/upload-artifact@v3
with:
name: lib-windows
Expand Down

0 comments on commit 1fff473

Please sign in to comment.