2222 fail-fast : false
2323 matrix :
2424 os : [macos-latest]
25- version : ["1.11.0", "1.11.1", "1.12.0", "1.12.1", "1.13.1", "1.14.0", "1.14.1", "1.15.0", "1.15.1", "1.16.1", "1.16.2", "1.17.0", "1.17.1", "1.17.3", "1.18.0", "1.18.1", "1.19.0", "1.19.2", "1.20.0", "1.20.1", "1.20.2", "1.21.0", "1.21.1", "1.22.0", "1.22.1", "1.22.2", "1.23.0", "1.23.1", "1.23.2"]
25+ # version: ["1.11.0", "1.11.1", "1.12.0", "1.12.1", "1.13.1", "1.14.0", "1.14.1", "1.15.0", "1.15.1", "1.16.1", "1.16.2", "1.17.0", "1.17.1", "1.17.3", "1.18.0", "1.18.1", "1.19.0", "1.19.2", "1.20.0", "1.20.1", "1.20.2", "1.21.0", "1.21.1", "1.22.0", "1.22.1", "1.22.2", "1.23.0", "1.23.1", "1.23.2", "1.24.4"]
26+ version : ["1.24.4"]
2627
2728 steps :
2829 - uses : actions/checkout@v4
@@ -44,21 +45,22 @@ jobs:
4445 shell : bash
4546 run : |
4647 version=${{ matrix.version }}
47- curl -SL -O https://github.com/microsoft/onnxruntime/releases/download/v${version}/onnxruntime-osx-universal2-${version}.tgz
48- tar xvf onnxruntime-osx-universal2-${version}.tgz
49- ls -lh onnxruntime-osx-universal2-${version}
48+ curl -SL -O https://github.com/microsoft/onnxruntime/releases/download/v${version}/onnxruntime-osx-arm64-${version}.tgz
5049
51- ls -lh onnxruntime-osx-universal2-${version}
50+ tar xvf onnxruntime-osx-arm64-${version}.tgz
51+ ls -lh onnxruntime-osx-arm64-${version}
52+
53+ ls -lh onnxruntime-osx-arm64-${version}
5254 echo "---"
53- ls -lh onnxruntime-osx-universal2 -${version}/include
55+ ls -lh onnxruntime-osx-arm64 -${version}/include
5456 echo "---"
55- ls -lh onnxruntime-osx-universal2 -${version}/lib
57+ ls -lh onnxruntime-osx-arm64 -${version}/lib
5658
5759 - name : Configure CMake
5860 shell : bash
5961 run : |
6062 version=${{ matrix.version }}
61- onnxruntime_dir=$PWD/onnxruntime-osx-universal2 -${version}
63+ onnxruntime_dir=$PWD/onnxruntime-osx-arm64 -${version}
6264 export SHERPA_ONNXRUNTIME_LIB_DIR=$onnxruntime_dir/lib/
6365 export SHERPA_ONNXRUNTIME_INCLUDE_DIR=$onnxruntime_dir/include/
6466
@@ -71,15 +73,14 @@ jobs:
7173
7274 cmake \
7375 -D BUILD_SHARED_LIBS=ON \
74- -D CMAKE_OSX_ARCHITECTURES='arm64;x86_64' \
7576 -D CMAKE_INSTALL_PREFIX=./install \
7677 ..
7778
7879 - name : Build sherpa-onnx for macos
7980 shell : bash
8081 run : |
8182 version=${{ matrix.version }}
82- onnxruntime_dir=$PWD/onnxruntime-osx-universal2 -${version}
83+ onnxruntime_dir=$PWD/onnxruntime-osx-arm64 -${version}
8384 export SHERPA_ONNXRUNTIME_LIB_DIR=$onnxruntime_dir/lib/
8485 export SHERPA_ONNXRUNTIME_INCLUDE_DIR=$onnxruntime_dir/include/
8586
@@ -112,7 +113,7 @@ jobs:
112113 run : |
113114 SHERPA_ONNX_VERSION=v$(grep "SHERPA_ONNX_VERSION" ./CMakeLists.txt | cut -d " " -f 2 | cut -d '"' -f 2)
114115
115- dst=sherpa-onnx-${SHERPA_ONNX_VERSION}-onnxruntime-${{ matrix.version }}-osx-universal2 -shared
116+ dst=sherpa-onnx-${SHERPA_ONNX_VERSION}-onnxruntime-${{ matrix.version }}-osx-arm64 -shared
116117 mkdir $dst
117118
118119 cp -a build/install/bin $dst/
@@ -131,7 +132,7 @@ jobs:
131132 with :
132133 file_glob : true
133134 overwrite : true
134- file : sherpa-onnx-*osx-universal2 *.tar.bz2
135+ file : sherpa-onnx-*osx-arm64 *.tar.bz2
135136
136137 - name : Test offline Cohere Transcribe
137138 if : matrix.build_type != 'Debug' && !startsWith(github.ref, 'refs/tags/')
0 commit comments