windows-x64.yaml (1876B)
1 name: windows-x64 2 3 on: 4 push: 5 branches: 6 - master 7 pull_request: 8 branches: 9 - master 10 11 concurrency: 12 group: windows-x64-${{ github.ref }} 13 cancel-in-progress: true 14 15 permissions: 16 contents: read 17 18 jobs: 19 windows_x64: 20 name: Test on Win64 21 runs-on: ${{ matrix.os }} 22 strategy: 23 fail-fast: true 24 matrix: 25 os: [windows-latest] 26 27 steps: 28 - uses: actions/checkout@v2 29 with: 30 fetch-depth: 0 31 32 - name: Configure CMake 33 shell: bash 34 run: | 35 mkdir build 36 cd build 37 cmake -D CMAKE_BUILD_TYPE=Release .. 38 39 40 - name: Build kaldi-native-fbank for windows 41 shell: bash 42 run: | 43 cd build 44 cmake --build . --target ALL_BUILD --config Release 45 cat CMakeCache.txt 46 47 - name: Run tests for windows 48 shell: bash 49 run: | 50 cd build 51 ctest --verbose -C Release --output-on-failure -E py 52 53 - name: Setup Python 54 uses: actions/setup-python@v4 55 with: 56 python-version: "3.8" 57 58 - name: Install Python dependencies 59 shell: bash 60 run: | 61 python3 -m pip install --upgrade pip pytest 62 python3 -m pip install wheel twine setuptools 63 64 - name: Build Python 65 shell: bash 66 run: | 67 python3 -m pip install --verbose . 68 69 - name: Display Python package version 70 shell: bash 71 run: | 72 python3 -c "import kaldi_native_fbank; print(kaldi_native_fbank.__version__)" 73 python3 -c "import kaldi_native_fbank; print(kaldi_native_fbank.__file__)" 74 75 - name: Run Python tests 76 shell: bash 77 run: | 78 cd kaldi-native-fbank/python/tests 79 python3 ./test_fbank_options.py 80 python3 ./test_frame_extraction_options.py 81 python3 ./test_mel_bank_options.py