Support pkg-config (#243) #165
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: windows-x86 | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- '.github/workflows/windows-x86.yaml' | |
- '.github/scripts/run-test.sh' | |
- 'CMakeLists.txt' | |
- 'cmake/**' | |
- 'sherpa-ncnn/csrc/*' | |
pull_request: | |
branches: | |
- master | |
paths: | |
- '.github/workflows/windows-x86.yaml' | |
- '.github/scripts/run-test.sh' | |
- 'CMakeLists.txt' | |
- 'cmake/**' | |
- 'sherpa-ncnn/csrc/*' | |
concurrency: | |
group: windows-x86-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
jobs: | |
windows_x86: | |
runs-on: ${{ matrix.os }} | |
name: ${{ matrix.vs-version }} | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- vs-version: vs2015 | |
toolset-version: v140 | |
os: windows-2019 | |
- vs-version: vs2017 | |
toolset-version: v141 | |
os: windows-2019 | |
- vs-version: vs2019 | |
toolset-version: v142 | |
os: windows-2022 | |
- vs-version: vs2022 | |
toolset-version: v143 | |
os: windows-2022 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Configure CMake | |
shell: bash | |
run: | | |
mkdir build | |
cd build | |
cmake -T ${{ matrix.toolset-version}},host=x64 -A Win32 -D CMAKE_BUILD_TYPE=Release .. | |
- name: Build sherpa for windows | |
shell: bash | |
run: | | |
cd build | |
cmake --build . --config Release -- -m:2 | |
ls -lh ./bin/Release/sherpa-ncnn.exe | |
ls -lh ./bin/Release/decode-file-c-api.exe | |
ls -lh ./bin/Release/sherpa-ncnn-microphone.exe | |
- name: Test sherpa-ncnn | |
shell: bash | |
run: | | |
export PATH=$PWD/build/bin/Release:$PATH | |
export EXE=sherpa-ncnn.exe | |
.github/scripts/run-test.sh | |
- name: Test C API | |
shell: bash | |
run: | | |
export PATH=$PWD/build/bin/Release:$PATH | |
export EXE=decode-file-c-api.exe | |
.github/scripts/run-test.sh |