From 19c826fe1097bf9951e4cce43dfbc2da3de0a5c6 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Mon, 15 Jun 2026 16:23:16 +0800 Subject: [PATCH 1/2] Fix releasing Dart iOS package --- .github/workflows/release-dart-package.yaml | 21 +++++++++++---------- build-ios-shared.sh | 2 ++ 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release-dart-package.yaml b/.github/workflows/release-dart-package.yaml index baf480e91a..5049c43bf5 100644 --- a/.github/workflows/release-dart-package.yaml +++ b/.github/workflows/release-dart-package.yaml @@ -15,7 +15,7 @@ concurrency: jobs: build_linux_libs_x64: - # if: false + if: false name: ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: @@ -82,7 +82,7 @@ jobs: path: ./*.tar.bz2 build_linux_libs_aarch64: - # if: false + if: false name: ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: @@ -150,7 +150,7 @@ jobs: sherpa_onnx_linux: needs: [build_linux_libs_x64, build_linux_libs_aarch64] - # if: false + if: false permissions: id-token: write # Required for authentication using OIDC name: sherpa_onnx_linux @@ -243,7 +243,7 @@ jobs: flutter pub publish --force sherpa_onnx_macos: - # if: false + if: false permissions: id-token: write # Required for authentication using OIDC name: sherpa_onnx_macos @@ -351,7 +351,7 @@ jobs: flutter pub publish --force sherpa_onnx_windows: - # if: false + if: false permissions: id-token: write # Required for authentication using OIDC name: sherpa_onnx_windows @@ -441,7 +441,7 @@ jobs: flutter pub publish --force sherpa_onnx_android_arm64: - # if: false + if: false permissions: id-token: write # Required for authentication using OIDC name: sherpa_onnx_android_arm64 @@ -539,7 +539,7 @@ jobs: flutter pub publish --force sherpa_onnx_android_armeabi: - # if: false + if: false permissions: id-token: write # Required for authentication using OIDC name: sherpa_onnx_android_armeabi @@ -637,7 +637,7 @@ jobs: flutter pub publish --force sherpa_onnx_android_x86: - # if: false + if: false permissions: id-token: write # Required for authentication using OIDC name: sherpa_onnx_android_x86 @@ -735,7 +735,7 @@ jobs: flutter pub publish --force sherpa_onnx_android_x86_64: - # if: false + if: false permissions: id-token: write # Required for authentication using OIDC name: sherpa_onnx_android_x86_64 @@ -917,7 +917,8 @@ jobs: flutter pub publish --force sherpa_onnx: - needs: [sherpa_onnx_linux, sherpa_onnx_macos, sherpa_onnx_windows, sherpa_onnx_android_arm64, sherpa_onnx_android_armeabi, sherpa_onnx_android_x86, sherpa_onnx_android_x86_64, sherpa_onnx_ios] + # needs: [sherpa_onnx_linux, sherpa_onnx_macos, sherpa_onnx_windows, sherpa_onnx_android_arm64, sherpa_onnx_android_armeabi, sherpa_onnx_android_x86, sherpa_onnx_android_x86_64, sherpa_onnx_ios] + needs: [sherpa_onnx_ios] # if: false permissions: id-token: write # Required for authentication using OIDC diff --git a/build-ios-shared.sh b/build-ios-shared.sh index b183fe985c..b651e0101c 100755 --- a/build-ios-shared.sh +++ b/build-ios-shared.sh @@ -191,6 +191,7 @@ install_name_tool \ sherpa_onnx chmod +x sherpa_onnx +strip -x sherpa_onnx popd pushd ios-arm64_x86_64-simulator @@ -214,6 +215,7 @@ install_name_tool \ sherpa_onnx chmod +x sherpa_onnx +strip -x sherpa_onnx popd for d in ios-arm64_x86_64-simulator ios-arm64; do From 54ab4103e8774ac636873c8bf694ad80858d4643 Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Mon, 15 Jun 2026 16:58:43 +0800 Subject: [PATCH 2/2] Small fixes --- .github/workflows/release-dart-package.yaml | 21 ++++++++++----------- sherpa-onnx/csrc/offline-catt-model.cc | 2 +- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release-dart-package.yaml b/.github/workflows/release-dart-package.yaml index 5049c43bf5..baf480e91a 100644 --- a/.github/workflows/release-dart-package.yaml +++ b/.github/workflows/release-dart-package.yaml @@ -15,7 +15,7 @@ concurrency: jobs: build_linux_libs_x64: - if: false + # if: false name: ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: @@ -82,7 +82,7 @@ jobs: path: ./*.tar.bz2 build_linux_libs_aarch64: - if: false + # if: false name: ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: @@ -150,7 +150,7 @@ jobs: sherpa_onnx_linux: needs: [build_linux_libs_x64, build_linux_libs_aarch64] - if: false + # if: false permissions: id-token: write # Required for authentication using OIDC name: sherpa_onnx_linux @@ -243,7 +243,7 @@ jobs: flutter pub publish --force sherpa_onnx_macos: - if: false + # if: false permissions: id-token: write # Required for authentication using OIDC name: sherpa_onnx_macos @@ -351,7 +351,7 @@ jobs: flutter pub publish --force sherpa_onnx_windows: - if: false + # if: false permissions: id-token: write # Required for authentication using OIDC name: sherpa_onnx_windows @@ -441,7 +441,7 @@ jobs: flutter pub publish --force sherpa_onnx_android_arm64: - if: false + # if: false permissions: id-token: write # Required for authentication using OIDC name: sherpa_onnx_android_arm64 @@ -539,7 +539,7 @@ jobs: flutter pub publish --force sherpa_onnx_android_armeabi: - if: false + # if: false permissions: id-token: write # Required for authentication using OIDC name: sherpa_onnx_android_armeabi @@ -637,7 +637,7 @@ jobs: flutter pub publish --force sherpa_onnx_android_x86: - if: false + # if: false permissions: id-token: write # Required for authentication using OIDC name: sherpa_onnx_android_x86 @@ -735,7 +735,7 @@ jobs: flutter pub publish --force sherpa_onnx_android_x86_64: - if: false + # if: false permissions: id-token: write # Required for authentication using OIDC name: sherpa_onnx_android_x86_64 @@ -917,8 +917,7 @@ jobs: flutter pub publish --force sherpa_onnx: - # needs: [sherpa_onnx_linux, sherpa_onnx_macos, sherpa_onnx_windows, sherpa_onnx_android_arm64, sherpa_onnx_android_armeabi, sherpa_onnx_android_x86, sherpa_onnx_android_x86_64, sherpa_onnx_ios] - needs: [sherpa_onnx_ios] + needs: [sherpa_onnx_linux, sherpa_onnx_macos, sherpa_onnx_windows, sherpa_onnx_android_arm64, sherpa_onnx_android_armeabi, sherpa_onnx_android_x86, sherpa_onnx_android_x86_64, sherpa_onnx_ios] # if: false permissions: id-token: write # Required for authentication using OIDC diff --git a/sherpa-onnx/csrc/offline-catt-model.cc b/sherpa-onnx/csrc/offline-catt-model.cc index 5f15001e27..f53eb3db9d 100644 --- a/sherpa-onnx/csrc/offline-catt-model.cc +++ b/sherpa-onnx/csrc/offline-catt-model.cc @@ -77,7 +77,7 @@ class OfflineCATTModel::Impl { return std::move(ans[0]); } - OrtAllocator *Allocator() const { return allocator_; } + OrtAllocator *Allocator() { return allocator_; } private: void InitEncoder() {