mirror of
https://github.com/k2-fsa/sherpa-onnx.git
synced 2026-01-09 07:41:06 +08:00
Fix CI for windows (#2279)
This commit is contained in:
parent
749dc9a239
commit
db632dacf3
@ -21,7 +21,7 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-22.04-arm]
|
||||
python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312", "cp313"]
|
||||
python-version: ["cp38", "cp39", "cp310", "cp311", "cp312", "cp313"]
|
||||
manylinux: [manylinux2014] #, manylinux_2_28]
|
||||
|
||||
steps:
|
||||
|
||||
2
.github/workflows/build-wheels-aarch64.yaml
vendored
2
.github/workflows/build-wheels-aarch64.yaml
vendored
@ -23,7 +23,7 @@ jobs:
|
||||
# see https://github.com/pypa/cibuildwheel/issues/2257
|
||||
# we don't use qemu from now on
|
||||
os: [ubuntu-22.04-arm]
|
||||
python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312", "cp313"]
|
||||
python-version: ["cp38", "cp39", "cp310", "cp311", "cp312", "cp313"]
|
||||
manylinux: [manylinux2014] #, manylinux_2_28]
|
||||
|
||||
steps:
|
||||
|
||||
2
.github/workflows/build-wheels-linux.yaml
vendored
2
.github/workflows/build-wheels-linux.yaml
vendored
@ -21,7 +21,7 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-22.04]
|
||||
python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312", "cp313"]
|
||||
python-version: ["cp38", "cp39", "cp310", "cp311", "cp312", "cp313"]
|
||||
manylinux: [manylinux2014] #, manylinux_2_28]
|
||||
|
||||
|
||||
|
||||
@ -21,7 +21,7 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [macos-13]
|
||||
python-version: ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312", "cp313"]
|
||||
python-version: ["cp38", "cp39", "cp310", "cp311", "cp312", "cp313"]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@ -20,7 +20,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [windows-2019]
|
||||
os: [windows-2022]
|
||||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
|
||||
|
||||
steps:
|
||||
|
||||
2
.github/workflows/build-wheels-win64.yaml
vendored
2
.github/workflows/build-wheels-win64.yaml
vendored
@ -20,7 +20,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [windows-2019]
|
||||
os: [windows-2022]
|
||||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
|
||||
|
||||
steps:
|
||||
|
||||
2
.github/workflows/dot-net.yaml
vendored
2
.github/workflows/dot-net.yaml
vendored
@ -17,7 +17,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [windows-2019]
|
||||
os: [windows-2022]
|
||||
arch: [x64, x86, arm64]
|
||||
|
||||
steps:
|
||||
|
||||
2
.github/workflows/npm-addon-win-x64.yaml
vendored
2
.github/workflows/npm-addon-win-x64.yaml
vendored
@ -20,7 +20,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [windows-2019]
|
||||
os: [windows-2022]
|
||||
python-version: ["3.8"]
|
||||
|
||||
steps:
|
||||
|
||||
2
.github/workflows/npm-addon-win-x86.yaml
vendored
2
.github/workflows/npm-addon-win-x86.yaml
vendored
@ -20,7 +20,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [windows-2019]
|
||||
os: [windows-2022]
|
||||
python-version: ["3.8"]
|
||||
|
||||
steps:
|
||||
|
||||
2
.github/workflows/release-dart-package.yaml
vendored
2
.github/workflows/release-dart-package.yaml
vendored
@ -218,7 +218,7 @@ jobs:
|
||||
permissions:
|
||||
id-token: write # Required for authentication using OIDC
|
||||
name: sherpa_onnx_windows
|
||||
runs-on: windows-2019
|
||||
runs-on: windows-2022
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
2
.github/workflows/test-nodejs-npm.yaml
vendored
2
.github/workflows/test-nodejs-npm.yaml
vendored
@ -25,7 +25,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-2019]
|
||||
os: [ubuntu-latest, macos-latest, windows-2022]
|
||||
python-version: ["3.10"]
|
||||
|
||||
steps:
|
||||
|
||||
2
.github/workflows/test-nodejs.yaml
vendored
2
.github/workflows/test-nodejs.yaml
vendored
@ -38,7 +38,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest] #, macos-latest] #, windows-2019]
|
||||
os: [ubuntu-latest] #, macos-latest] #, windows-2022]
|
||||
python-version: ["3.8"]
|
||||
|
||||
steps:
|
||||
|
||||
6
.github/workflows/test-pip-install.yaml
vendored
6
.github/workflows/test-pip-install.yaml
vendored
@ -60,11 +60,11 @@ jobs:
|
||||
- os: macos-14
|
||||
python-version: "3.13"
|
||||
|
||||
- os: windows-2019
|
||||
- os: windows-2022
|
||||
python-version: "3.7"
|
||||
- os: windows-2019
|
||||
- os: windows-2022
|
||||
python-version: "3.8"
|
||||
- os: windows-2019
|
||||
- os: windows-2022
|
||||
python-version: "3.9"
|
||||
|
||||
- os: windows-2022
|
||||
|
||||
2
.github/workflows/windows-x64-jni.yaml
vendored
2
.github/workflows/windows-x64-jni.yaml
vendored
@ -20,7 +20,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [windows-2019]
|
||||
os: [windows-2022]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@ -26,10 +26,10 @@ pushd $src_dir
|
||||
|
||||
mkdir -p linux-x64 linux-arm64 macos-x64 macos-arm64 windows-x64 windows-x86 windows-arm64
|
||||
|
||||
linux_x64_wheel_filename=sherpa_onnx-${SHERPA_ONNX_VERSION}-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
|
||||
linux_x64_wheel_filename=sherpa_onnx-${SHERPA_ONNX_VERSION}-cp38-cp38-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
|
||||
linux_x64_wheel=$src_dir/$linux_x64_wheel_filename
|
||||
|
||||
linux_arm64_wheel_filename=sherpa_onnx-${SHERPA_ONNX_VERSION}-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
|
||||
linux_arm64_wheel_filename=sherpa_onnx-${SHERPA_ONNX_VERSION}-cp38-cp38-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
|
||||
linux_arm64_wheel=$src_dir/$linux_arm64_wheel_filename
|
||||
|
||||
macos_x64_wheel_filename=sherpa_onnx-${SHERPA_ONNX_VERSION}-cp39-cp39-macosx_11_0_x86_64.whl
|
||||
|
||||
@ -28,8 +28,8 @@ function linux() {
|
||||
dst=$(realpath sherpa-onnx-go-linux/lib/x86_64-unknown-linux-gnu)
|
||||
mkdir t
|
||||
cd t
|
||||
wget -q https://huggingface.co/csukuangfj/sherpa-onnx-wheels/resolve/main/cpu/$SHERPA_ONNX_VERSION/sherpa_onnx-${SHERPA_ONNX_VERSION}-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
|
||||
unzip ./sherpa_onnx-${SHERPA_ONNX_VERSION}-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
|
||||
wget -q https://huggingface.co/csukuangfj/sherpa-onnx-wheels/resolve/main/cpu/$SHERPA_ONNX_VERSION/sherpa_onnx-${SHERPA_ONNX_VERSION}-cp38-cp38-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
|
||||
unzip sherpa_onnx-${SHERPA_ONNX_VERSION}-cp38-cp38-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
|
||||
|
||||
cp -v sherpa_onnx/lib/*.so* $dst
|
||||
|
||||
@ -40,8 +40,8 @@ function linux() {
|
||||
dst=$(realpath sherpa-onnx-go-linux/lib/aarch64-unknown-linux-gnu)
|
||||
mkdir t
|
||||
cd t
|
||||
wget -q https://huggingface.co/csukuangfj/sherpa-onnx-wheels/resolve/main/cpu/$SHERPA_ONNX_VERSION/sherpa_onnx-${SHERPA_ONNX_VERSION}-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
|
||||
unzip ./sherpa_onnx-${SHERPA_ONNX_VERSION}-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
|
||||
wget -q https://huggingface.co/csukuangfj/sherpa-onnx-wheels/resolve/main/cpu/$SHERPA_ONNX_VERSION/sherpa_onnx-${SHERPA_ONNX_VERSION}-cp38-cp38-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
|
||||
unzip ./sherpa_onnx-${SHERPA_ONNX_VERSION}-cp38-cp38-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
|
||||
|
||||
cp -v sherpa_onnx/lib/*.so* $dst
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user