Fix CI for macOS.

This commit is contained in:
Fangjun Kuang 2022-06-01 21:01:43 +08:00
parent 12009be386
commit 91a9711db3
3 changed files with 24 additions and 6 deletions

View File

@ -83,5 +83,12 @@ jobs:
- name: Run tests
shell: bash
run: |
lib_path=$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")
echo "lib_path: $lib_path"
ls -lh $lib_path
# export DYLD_LIBRARY_PATH=$lib_path:$DYLD_LIBRARY_PATH
otool -L $lib_path/_kaldifeat.*.so
otool -l $lib_path/_kaldifeat.*.so
cd kaldifeat/python/tests
make test

View File

@ -19,7 +19,16 @@ name: Nightly tests ubuntu cpu
on:
push:
branches:
- nightly-test
- nightly-test-2
schedule:
# minute (0-59)
# hour (0-23)
# day of the month (1-31)
# month (1-12)
# day of the week (0-6)
# nightly build at 23:50 UTC time every day
- cron: "50 23 * * *"
jobs:
generate_build_matrix:

View File

@ -12,11 +12,13 @@ set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin")
if(NOT APPLE)
set(CMAKE_SKIP_BUILD_RPATH FALSE)
set(BUILD_RPATH_USE_ORIGIN TRUE)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
set(CMAKE_INSTALL_RPATH "$ORIGIN")
set(CMAKE_BUILD_RPATH "$ORIGIN")
endif9)
set(BUILD_SHARED_LIBS ON)
if(WIN32)