Support linux aarch64 for Dart and Flutter (#2342)
Adds support for building and packaging Linux AArch64 (arm64) artifacts alongside x64 for Dart/Flutter plugins. - Detects host architecture in CMake and adjusts library paths - Extends test workflows to run on an ARM runner and handle linux-aarch64 paths - Splits release pipeline into separate x64 and aarch64 build/package jobs
This commit is contained in:
15
.github/workflows/test-dart-package.yaml
vendored
15
.github/workflows/test-dart-package.yaml
vendored
@@ -23,7 +23,7 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [macos-latest, ubuntu-latest] #, windows-latest]
|
||||
os: [ubuntu-latest, macos-latest, ubuntu-24.04-arm] #, windows-latest]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -36,11 +36,12 @@ jobs:
|
||||
./new-release.sh
|
||||
git diff .
|
||||
|
||||
- name: Setup Flutter SDK
|
||||
uses: flutter-actions/setup-flutter@v3
|
||||
# see https://github.com/subosito/flutter-action/issues/345
|
||||
- name: Set up Flutter
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: stable
|
||||
version: latest
|
||||
channel: master
|
||||
flutter-version: 3.24.0
|
||||
|
||||
- name: Display flutter info
|
||||
shell: bash
|
||||
@@ -58,7 +59,7 @@ jobs:
|
||||
cd dart-api-examples/vad
|
||||
flutter pub get
|
||||
|
||||
if [[ ${{ matrix.os }} == ubuntu-latest ]]; then
|
||||
if [[ ${{ matrix.os }} == ubuntu-latest || ${{ matrix.os }} == ubuntu-24.04-arm ]]; then
|
||||
echo "-----"
|
||||
ls -lh /home/runner/work/_temp/pub-cache/hosted/pub.dev
|
||||
|
||||
@@ -75,7 +76,7 @@ jobs:
|
||||
# sudo touch /home/runner/work/_temp/pub-cache/hosted/pub.dev/sherpa_onnx_linux-1.10.7/lib/.gitkeep
|
||||
|
||||
echo "-----"
|
||||
ls -lh /home/runner/work/_temp/pub-cache/hosted/pub.dev/sherpa_onnx_linux-*/linux
|
||||
ls -lh /home/runner/work/_temp/pub-cache/hosted/pub.dev/sherpa_onnx_linux-*/linux/*
|
||||
elif [[ ${{ matrix.os }} == macos-latest ]]; then
|
||||
echo "-----"
|
||||
ls -lh /Users/runner/work/_temp/pub-cache/hosted/pub.dev
|
||||
|
||||
Reference in New Issue
Block a user