diff --git a/.github/workflows/build-wheels-aarch64.yaml b/.github/workflows/build-wheels-aarch64.yaml index 203eef457..9612e6fac 100644 --- a/.github/workflows/build-wheels-aarch64.yaml +++ b/.github/workflows/build-wheels-aarch64.yaml @@ -6,6 +6,7 @@ on: - wheel tags: - '*' + workflow_dispatch: env: SHERPA_ONNX_IS_IN_GITHUB_ACTIONS: 1 diff --git a/.github/workflows/build-wheels-macos.yaml b/.github/workflows/build-wheels-macos.yaml index 100c518eb..f74108eab 100644 --- a/.github/workflows/build-wheels-macos.yaml +++ b/.github/workflows/build-wheels-macos.yaml @@ -6,6 +6,7 @@ on: - wheel tags: - '*' + workflow_dispatch: env: SHERPA_ONNX_IS_IN_GITHUB_ACTIONS: 1 diff --git a/.github/workflows/build-wheels-win32.yaml b/.github/workflows/build-wheels-win32.yaml index 6aa33fb99..d44390fc0 100644 --- a/.github/workflows/build-wheels-win32.yaml +++ b/.github/workflows/build-wheels-win32.yaml @@ -6,6 +6,7 @@ on: - wheel tags: - '*' + workflow_dispatch: env: SHERPA_ONNX_IS_IN_GITHUB_ACTIONS: 1 diff --git a/.github/workflows/build-wheels.yaml b/.github/workflows/build-wheels.yaml index 462bc611b..d1b3beba1 100644 --- a/.github/workflows/build-wheels.yaml +++ b/.github/workflows/build-wheels.yaml @@ -6,6 +6,7 @@ on: - wheel tags: - '*' + workflow_dispatch: env: SHERPA_ONNX_IS_IN_GITHUB_ACTIONS: 1 diff --git a/cmake/cmake_extension.py b/cmake/cmake_extension.py index e8b9c6586..a604622c7 100644 --- a/cmake/cmake_extension.py +++ b/cmake/cmake_extension.py @@ -146,11 +146,11 @@ def build_extension(self, ext: setuptools.extension.Extension): binaries += ["sherpa-onnx-portaudio.dll"] binaries += ["onnxruntime.dll"] binaries += ["kaldi-decoder-core.dll"] - binaries += ["sherpa-onnx-fst.dll"] - binaries += ["sherpa-onnx-kaldifst-core.dll"] + binaries += ["sherpa-onnx-fst.lib"] + binaries += ["sherpa-onnx-kaldifst-core.lib"] for f in binaries: - suffix = "" if "dll" in f else suffix + suffix = "" if (".dll" in f or ".lib" in f) else suffix src_file = install_dir / "bin" / (f + suffix) if not src_file.is_file(): src_file = install_dir / "lib" / (f + suffix) diff --git a/setup.py b/setup.py index 0cc39c26b..7960965b9 100644 --- a/setup.py +++ b/setup.py @@ -65,12 +65,12 @@ def get_binaries_to_install(): binaries += ["sherpa-onnx-portaudio.dll"] binaries += ["onnxruntime.dll"] binaries += ["kaldi-decoder-core.dll"] - binaries += ["sherpa-onnx-fst.dll"] - binaries += ["sherpa-onnx-kaldifst-core.dll"] + binaries += ["sherpa-onnx-fst.lib"] + binaries += ["sherpa-onnx-kaldifst-core.lib"] exe = [] for f in binaries: - suffix = "" if "dll" in f else suffix + suffix = "" if (".dll" in f or ".lib" in f) else suffix t = bin_dir / (f + suffix) exe.append(str(t)) return exe