Skip to content

Commit f10e880

Browse files
committed
feat: add sherpaonnx variants to publish matrix for all platforms
- Linux x86_64: system+cloud+sherpaonnx - macOS x86_64+ARM: cloud+sherpaonnx - Windows x86_64+ARM: cloud+sherpaonnx - sherpa-onnx downloads pre-built onnxruntime, no system deps needed - Test sherpaonnx build in test job
1 parent abe28c5 commit f10e880

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ jobs:
4747
run: cargo build --no-default-features --features system
4848
- name: Build cloud-only
4949
run: cargo build --no-default-features --features cloud
50+
- name: Build with sherpaonnx
51+
run: cargo build --no-default-features --features system,sherpaonnx
5052

5153
build:
5254
name: Build ${{ matrix.label }}
@@ -65,6 +67,11 @@ jobs:
6567
features: "system,cloud"
6668
label: "system-cloud-x86_64-linux"
6769
lib_ext: so
70+
- target: x86_64-unknown-linux-gnu
71+
os: ubuntu-latest
72+
features: "system,cloud,sherpaonnx"
73+
label: "system-cloud-sherpaonnx-x86_64-linux"
74+
lib_ext: so
6875
- target: x86_64-apple-darwin
6976
os: macos-latest
7077
features: "cloud"
@@ -75,6 +82,16 @@ jobs:
7582
features: "cloud"
7683
label: "cloud-aarch64-macos"
7784
lib_ext: dylib
85+
- target: x86_64-apple-darwin
86+
os: macos-latest
87+
features: "cloud,sherpaonnx"
88+
label: "cloud-sherpaonnx-x86_64-macos"
89+
lib_ext: dylib
90+
- target: aarch64-apple-darwin
91+
os: macos-latest
92+
features: "cloud,sherpaonnx"
93+
label: "cloud-sherpaonnx-aarch64-macos"
94+
lib_ext: dylib
7895
- target: x86_64-pc-windows-msvc
7996
os: windows-latest
8097
features: "cloud"
@@ -85,6 +102,16 @@ jobs:
85102
features: "cloud"
86103
label: "cloud-aarch64-windows"
87104
lib_ext: dll
105+
- target: x86_64-pc-windows-msvc
106+
os: windows-latest
107+
features: "cloud,sherpaonnx"
108+
label: "cloud-sherpaonnx-x86_64-windows"
109+
lib_ext: dll
110+
- target: aarch64-pc-windows-msvc
111+
os: windows-latest
112+
features: "cloud,sherpaonnx"
113+
label: "cloud-sherpaonnx-aarch64-windows"
114+
lib_ext: dll
88115
runs-on: ${{ matrix.os }}
89116
steps:
90117
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)