diff --git a/.github/workflows/build_conda_windows_cpu.yml b/.github/workflows/build_conda_windows_cpu.yml index b2204ca..a7baa67 100644 --- a/.github/workflows/build_conda_windows_cpu.yml +++ b/.github/workflows/build_conda_windows_cpu.yml @@ -20,6 +20,8 @@ name: build_conda_windows_cpu on: push: + branches: + - conda tags: - '*' diff --git a/scripts/conda-cpu/kaldifeat/build.sh b/scripts/conda-cpu/kaldifeat/build.sh deleted file mode 100644 index b21dbe2..0000000 --- a/scripts/conda-cpu/kaldifeat/build.sh +++ /dev/null @@ -1,33 +0,0 @@ -#!/usr/bin/env bash -# -# Copyright 2021 Xiaomi Corp. (author: Fangjun Kuang) -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -ex - -CONDA_ENV_DIR=$CONDA_PREFIX - -echo "KALDIFEAT_PYTHON_VERSION: $KALDIFEAT_PYTHON_VERSION" -echo "KALDIFEAT_TORCH_VERSION: $KALDIFEAT_TORCH_VERSION" -echo "KALDIFEAT_BUILD_TYPE: $KALDIFEAT_BUILD_TYPE" -echo "KALDIFEAT_BUILD_VERSION: $KALDIFEAT_BUILD_VERSION" - -export KALDIFEAT_CMAKE_ARGS="-DCMAKE_BUILD_TYPE=${KALDIFEAT_BUILD_TYPE}" -export KALDIFEAT_MAKE_ARGS="-j VERBOSE=1" - -export LIBRARY_PATH="/usr/local/miniconda/envs/kaldifeat/lib":$LIBRARY_PATH -export LD_LIBRARY_PATH="/usr/local/miniconda/envs/kaldifeat/lib":$LD_LIBRARY_PATH -export DYLD_LIBRARY_PATH="/usr/local/miniconda/envs/kaldifeat/lib":$DYLD_LIBRARY_PATH - -python3 setup.py install --single-version-externally-managed --record=record.txt diff --git a/scripts/conda-cpu/kaldifeat/meta.yaml b/scripts/conda-cpu/kaldifeat/meta.yaml index b2b5cb6..a3bf089 100644 --- a/scripts/conda-cpu/kaldifeat/meta.yaml +++ b/scripts/conda-cpu/kaldifeat/meta.yaml @@ -8,13 +8,7 @@ source: build: number: 0 string: cpu_py{{ environ.get('KALDIFEAT_PYTHON_VERSION') }}_torch{{ environ.get('KALDIFEAT_TORCH_VERSION') }} - script_env: - - KALDIFEAT_IS_GITHUB_ACTIONS - - KALDIFEAT_TORCH_VERSION - - KALDIFEAT_PYTHON_VERSION - - KALDIFEAT_BUILD_TYPE - - KALDIFEAT_BUILD_VERSION - - KALDIFEAT_IS_FOR_CONDA + script: {{ PYTHON }} setup.py install --single-version-externally-managed --record=record.txt requirements: build: @@ -22,7 +16,9 @@ requirements: - {{ compiler('cxx') }} # [win] host: - - cmake=3.18 + - anaconda-client + - conda-build + - cmake - python - pytorch={{ environ.get('KALDIFEAT_TORCH_VERSION') }} - cpuonly