mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2024-11-23 01:49:53 +00:00
CI: Add shared builds
This commit is contained in:
parent
499514c544
commit
54e319aeb1
45
.github/workflows/action.yml
vendored
45
.github/workflows/action.yml
vendored
@ -12,10 +12,15 @@ jobs:
|
||||
ubuntu-latest-clang-autotools,
|
||||
macos-latest-autotools,
|
||||
ubuntu-latest-gcc-cmake,
|
||||
ubuntu-latest-gcc-cmake-shared,
|
||||
ubuntu-latest-clang-cmake,
|
||||
ubuntu-latest-clang-cmake-shared,
|
||||
macos-latest-cmake,
|
||||
macos-latest-cmake-shared,
|
||||
windows-latest-vs2019-x64,
|
||||
windows-latest-vs2019-Win32
|
||||
windows-latest-vs2019-x64-shared,
|
||||
windows-latest-vs2019-Win32,
|
||||
windows-latest-vs2019-Win32-shared
|
||||
]
|
||||
include:
|
||||
- name: ubuntu-latest-gcc-autotools
|
||||
@ -44,6 +49,14 @@ jobs:
|
||||
cmake-generator: 'Ninja'
|
||||
cmake-options: '-DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-Wall -Wextra" -DCMAKE_VERBOSE_MAKEFILE=ON'
|
||||
|
||||
- name: ubuntu-latest-gcc-cmake-shared
|
||||
os: ubuntu-latest
|
||||
cc: gcc
|
||||
cxx: g++
|
||||
build-system: cmake
|
||||
cmake-generator: 'Ninja'
|
||||
cmake-options: '-DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DCMAKE_C_FLAGS="-Wall -Wextra" -DCMAKE_VERBOSE_MAKEFILE=ON'
|
||||
|
||||
- name: ubuntu-latest-clang-cmake
|
||||
os: ubuntu-latest
|
||||
cc: clang
|
||||
@ -52,6 +65,14 @@ jobs:
|
||||
cmake-generator: 'Ninja'
|
||||
cmake-options: '-DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-Wall -Wextra" -DCMAKE_VERBOSE_MAKEFILE=ON'
|
||||
|
||||
- name: ubuntu-latest-clang-cmake-shared
|
||||
os: ubuntu-latest
|
||||
cc: clang
|
||||
cxx: clang++
|
||||
build-system: cmake
|
||||
cmake-generator: 'Ninja'
|
||||
cmake-options: '-DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DCMAKE_C_FLAGS="-Wall -Wextra" -DCMAKE_VERBOSE_MAKEFILE=ON'
|
||||
|
||||
- name: macos-latest-cmake
|
||||
os: macos-latest
|
||||
cc: clang
|
||||
@ -60,6 +81,14 @@ jobs:
|
||||
cmake-generator: 'Unix Makefiles'
|
||||
cmake-options: '-DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS="-Wall -Wextra" -DCMAKE_VERBOSE_MAKEFILE=ON'
|
||||
|
||||
- name: macos-latest-cmake-shared
|
||||
os: macos-latest
|
||||
cc: clang
|
||||
cxx: clang++
|
||||
build-system: cmake
|
||||
cmake-generator: 'Unix Makefiles'
|
||||
cmake-options: '-DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DCMAKE_C_FLAGS="-Wall -Wextra" -DCMAKE_VERBOSE_MAKEFILE=ON'
|
||||
|
||||
- name: windows-latest-vs2019-x64
|
||||
os: windows-latest
|
||||
triplet: 'x64-windows-static'
|
||||
@ -67,6 +96,13 @@ jobs:
|
||||
cmake-generator: 'Visual Studio 16 2019'
|
||||
cmake-options: '-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded$<$<CONFIG:Debug>:Debug> -DCMAKE_BUILD_TYPE=Release -DVCPKG_TARGET_TRIPLET=x64-windows-static -DCMAKE_TOOLCHAIN_FILE=c:/vcpkg/scripts/buildsystems/vcpkg.cmake'
|
||||
|
||||
- name: windows-latest-vs2019-x64-shared
|
||||
os: windows-latest
|
||||
triplet: 'x64-windows-static'
|
||||
build-system: cmake
|
||||
cmake-generator: 'Visual Studio 16 2019'
|
||||
cmake-options: '-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded$<$<CONFIG:Debug>:Debug> -DBUILD_SHARED_LIBS=ON -DBUILD_REGTEST=OFF -DBUILD_EXAMPLES=OFF -DINSTALL_PKGCONFIG_MODULE=OFF -DCPACK_PACKAGE_NAME=libsndfile -DCMAKE_BUILD_TYPE=Release -DVCPKG_TARGET_TRIPLET=x64-windows-static -DCMAKE_TOOLCHAIN_FILE=c:/vcpkg/scripts/buildsystems/vcpkg.cmake'
|
||||
|
||||
- name: windows-latest-vs2019-Win32
|
||||
os: windows-latest
|
||||
triplet: 'x86-windows-static'
|
||||
@ -74,6 +110,13 @@ jobs:
|
||||
cmake-generator: 'Visual Studio 16 2019'
|
||||
cmake-options: '-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded$<$<CONFIG:Debug>:Debug> -DCMAKE_GENERATOR_PLATFORM=Win32 -DCMAKE_BUILD_TYPE=Release -DVCPKG_TARGET_TRIPLET=x86-windows-static -DCMAKE_TOOLCHAIN_FILE=c:/vcpkg/scripts/buildsystems/vcpkg.cmake'
|
||||
|
||||
- name: windows-latest-vs2019-Win32-shared
|
||||
os: windows-latest
|
||||
triplet: 'x86-windows-static'
|
||||
build-system: cmake
|
||||
cmake-generator: 'Visual Studio 16 2019'
|
||||
cmake-options: '-DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded$<$<CONFIG:Debug>:Debug> -DCMAKE_GENERATOR_PLATFORM=Win32 -DBUILD_SHARED_LIBS=ON -DBUILD_REGTEST=OFF -DBUILD_EXAMPLES=OFF -DINSTALL_PKGCONFIG_MODULE=OFF -DCPACK_PACKAGE_NAME=libsndfile -DCMAKE_BUILD_TYPE=Release -DVCPKG_TARGET_TRIPLET=x86-windows-static -DCMAKE_TOOLCHAIN_FILE=c:/vcpkg/scripts/buildsystems/vcpkg.cmake'
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
Loading…
Reference in New Issue
Block a user