-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from bastibe/bastibe/1.1.0-build
automatically build libsndfile 1.1.0 on the CI with MP3 support
- Loading branch information
Showing
14 changed files
with
115 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Compile Libraries (macOS/Intel) | ||
|
||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build-libs: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: ["macos-11"] | ||
fail-fast: true | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Compile library | ||
run: ./mac_build.sh | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: lib | ||
path: "libsndfile.dylib" | ||
retention-days: 7 | ||
if-no-files-found: error | ||
|
||
build-libs-windows: | ||
runs-on: windows-2019 | ||
strategy: | ||
matrix: | ||
include: | ||
- triplet: "x64-windows-custom" | ||
libname: "libsndfile_x64.dll" | ||
- triplet: "x86-windows-custom" | ||
libname: "libsndfile_x86.dll" | ||
fail-fast: true | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Update VCPKG | ||
run: "vcpkg update" | ||
- name: Build library | ||
run: "vcpkg install libsndfile:${{ matrix.triplet }} --overlay-triplets=triplets" | ||
- name: Copy library | ||
run: "Copy-Item c:/vcpkg/installed/${{ matrix.triplet }}/bin/sndfile.dll -Destination ${{ matrix.libname }}" | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: lib | ||
path: ${{ matrix.libname }} | ||
retention-days: 7 | ||
if-no-files-found: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Custom triplets for Vcpkg. | ||
|
||
https://vcpkg.readthedocs.io/en/latest/users/triplets/ | ||
https://vcpkg.readthedocs.io/en/latest/examples/overlay-triplets-linux-dynamic/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
set(VCPKG_TARGET_ARCHITECTURE x64) | ||
set(VCPKG_CRT_LINKAGE dynamic) # Runtime always dynamically linked. | ||
set(VCPKG_LIBRARY_LINKAGE static) # Libs are static by default. | ||
set(VCPKG_PLATFORM_TOOLSET v140) # Enforce v140 toolset. | ||
set(VCPKG_BUILD_TYPE release) # Skip debug builds. | ||
|
||
if (PORT STREQUAL libsndfile) # Only libsndfile is dynamic. | ||
set(VCPKG_LIBRARY_LINKAGE dynamic) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
set(VCPKG_TARGET_ARCHITECTURE x86) | ||
set(VCPKG_CRT_LINKAGE dynamic) | ||
set(VCPKG_LIBRARY_LINKAGE static) | ||
set(VCPKG_PLATFORM_TOOLSET v140) | ||
set(VCPKG_BUILD_TYPE release) | ||
|
||
if (PORT STREQUAL libsndfile) | ||
set(VCPKG_LIBRARY_LINKAGE dynamic) | ||
endif() |