Release v1.25 (#76)

This commit is contained in:
Fangjun Kuang 2023-07-26 12:38:22 +08:00 committed by GitHub
parent b65c799b4e
commit af6e61a5a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 72 deletions

View File

@ -42,15 +42,6 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: display
shell: bash
run: |
function retry() {
$* || (sleep 1 && $*) || (sleep 2 && $*) || (sleep 4 && $*) || (sleep 8 && $*)
}
retry ls -lh
# see https://cibuildwheel.readthedocs.io/en/stable/changelog/ # see https://cibuildwheel.readthedocs.io/en/stable/changelog/
# for a list of versions # for a list of versions
- name: Build wheels - name: Build wheels
@ -64,15 +55,8 @@ jobs:
- name: Display wheels - name: Display wheels
shell: bash shell: bash
run: | run: |
function retry() {
$* || (sleep 1 && $*) || (sleep 2 && $*) || (sleep 4 && $*) || (sleep 8 && $*)
}
ls -lh ./wheelhouse/ ls -lh ./wheelhouse/
ls -lh ./wheelhouse/*.whl
- name: Upload Wheel - name: Upload Wheel
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:

View File

@ -42,15 +42,6 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: display
shell: bash
run: |
function retry() {
$* || (sleep 1 && $*) || (sleep 2 && $*) || (sleep 4 && $*) || (sleep 8 && $*)
}
retry ls -lh
# see https://github.com/pytorch/test-infra/blob/9e3d392690719fac85bad0c9b67f530e48375ca1/tools/scripts/generate_binary_build_matrix.py # see https://github.com/pytorch/test-infra/blob/9e3d392690719fac85bad0c9b67f530e48375ca1/tools/scripts/generate_binary_build_matrix.py
# https://github.com/pytorch/builder/tree/main/manywheel # https://github.com/pytorch/builder/tree/main/manywheel
# https://github.com/pytorch/builder/pull/476 # https://github.com/pytorch/builder/pull/476
@ -74,15 +65,8 @@ jobs:
- name: Display wheels - name: Display wheels
shell: bash shell: bash
run: | run: |
function retry() {
$* || (sleep 1 && $*) || (sleep 2 && $*) || (sleep 4 && $*) || (sleep 8 && $*)
}
ls -lh ./wheelhouse/ ls -lh ./wheelhouse/
ls -lh ./wheelhouse/*.whl
- name: Upload Wheel - name: Upload Wheel
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:

View File

@ -42,15 +42,6 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: display
shell: bash
run: |
function retry() {
$* || (sleep 1 && $*) || (sleep 2 && $*) || (sleep 4 && $*) || (sleep 8 && $*)
}
retry ls -lh
# see https://github.com/pytorch/test-infra/blob/9e3d392690719fac85bad0c9b67f530e48375ca1/tools/scripts/generate_binary_build_matrix.py # see https://github.com/pytorch/test-infra/blob/9e3d392690719fac85bad0c9b67f530e48375ca1/tools/scripts/generate_binary_build_matrix.py
# https://github.com/pytorch/builder/tree/main/manywheel # https://github.com/pytorch/builder/tree/main/manywheel
# https://github.com/pytorch/builder/pull/476 # https://github.com/pytorch/builder/pull/476
@ -85,15 +76,8 @@ jobs:
- name: Display wheels - name: Display wheels
shell: bash shell: bash
run: | run: |
function retry() {
$* || (sleep 1 && $*) || (sleep 2 && $*) || (sleep 4 && $*) || (sleep 8 && $*)
}
ls -lh ./wheelhouse/ ls -lh ./wheelhouse/
ls -lh ./wheelhouse/*.whl
- name: Upload Wheel - name: Upload Wheel
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:

View File

@ -42,15 +42,6 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: display
shell: bash
run: |
function retry() {
$* || (sleep 1 && $*) || (sleep 2 && $*) || (sleep 4 && $*) || (sleep 8 && $*)
}
retry ls -lh
# see https://cibuildwheel.readthedocs.io/en/stable/changelog/ # see https://cibuildwheel.readthedocs.io/en/stable/changelog/
# for a list of versions # for a list of versions
- name: Build wheels - name: Build wheels
@ -64,15 +55,8 @@ jobs:
- name: Display wheels - name: Display wheels
shell: bash shell: bash
run: | run: |
function retry() {
$* || (sleep 1 && $*) || (sleep 2 && $*) || (sleep 4 && $*) || (sleep 8 && $*)
}
ls -lh ./wheelhouse/ ls -lh ./wheelhouse/
ls -lh ./wheelhouse/*.whl
- name: Upload Wheel - name: Upload Wheel
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:

View File

@ -7,7 +7,7 @@ project(kaldifeat)
# remember to change the version in # remember to change the version in
# scripts/conda/kaldifeat/meta.yaml # scripts/conda/kaldifeat/meta.yaml
# scripts/conda-cpu/kaldifeat/meta.yaml # scripts/conda-cpu/kaldifeat/meta.yaml
set(kaldifeat_VERSION "1.24") set(kaldifeat_VERSION "1.25.0")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib") set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib") set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
@ -26,11 +26,6 @@ endif()
set(CMAKE_INSTALL_RPATH ${kaldifeat_rpath_origin}) set(CMAKE_INSTALL_RPATH ${kaldifeat_rpath_origin})
set(CMAKE_BUILD_RPATH ${kaldifeat_rpath_origin}) set(CMAKE_BUILD_RPATH ${kaldifeat_rpath_origin})
set(BUILD_SHARED_LIBS ON)
if(WIN32)
message(STATUS "Set BUILD_SHARED_LIBS to OFF for Windows")
set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)
endif()
if(NOT CMAKE_BUILD_TYPE) if(NOT CMAKE_BUILD_TYPE)
message(STATUS "No CMAKE_BUILD_TYPE given, default to Release") message(STATUS "No CMAKE_BUILD_TYPE given, default to Release")
@ -45,10 +40,16 @@ message(STATUS "C++ Standard version: ${CMAKE_CXX_STANDARD}")
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules) list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
option(BUILD_SHARED_LIBS "Whether to build shared libraries" ON)
option(kaldifeat_BUILD_TESTS "Whether to build tests or not" ON) option(kaldifeat_BUILD_TESTS "Whether to build tests or not" ON)
option(kaldifeat_BUILD_PYMODULE "Whether to build python module or not" ON) option(kaldifeat_BUILD_PYMODULE "Whether to build python module or not" ON)
message(STATUS "BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS}")
if(BUILD_SHARED_LIBS AND MSVC)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
endif()
if(kaldifeat_BUILD_PYMODULE) if(kaldifeat_BUILD_PYMODULE)
include(pybind11) include(pybind11)
endif() endif()

View File

@ -78,10 +78,15 @@ file(COPY
DESTINATION DESTINATION
${PROJECT_BINARY_DIR}/include/kaldifeat/csrc ${PROJECT_BINARY_DIR}/include/kaldifeat/csrc
) )
if(BUILD_SHARED_LIBS AND WIN32)
install(TARGETS kaldifeat_core
DESTINATION ../
)
endif()
install(TARGETS kaldifeat_core install(TARGETS kaldifeat_core
DESTINATION ${CMAKE_INSTALL_LIBDIR} DESTINATION ${CMAKE_INSTALL_LIBDIR}
) )
install(FILES ${all_headers} install(FILES ${all_headers}
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/kaldifeat/csrc DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/kaldifeat/csrc
) )