Test go inside sherpa-onnx (#374)

Previously, we only test the go api examples with pre-built packages. 
This PR tests go API examples against the latest source code of sherpa-onnx.
This commit is contained in:
Fangjun Kuang
2023-10-20 10:43:30 +08:00
committed by GitHub
parent ea7c45b60c
commit fe0c8bfc51
26 changed files with 255 additions and 12 deletions

View File

@@ -0,0 +1,6 @@
//go:build darwin && amd64 && !ios
package sherpa_onnx
// #cgo LDFLAGS: -L ${SRCDIR}/lib/x86_64-apple-darwin -lsherpa-onnx-c-api -lsherpa-onnx-core -lkaldi-native-fbank-core -lonnxruntime -Wl,-rpath,${SRCDIR}/lib/x86_64-apple-darwin
import "C"