ci(linux): fix for ubunutu
This commit is contained in:
@@ -124,6 +124,16 @@ jobs:
|
||||
flutter --version
|
||||
command -v flutter_rust_bridge_codegen
|
||||
|
||||
# CRITICAL: use the apt-installed libclang (libclang-dev), NOT the
|
||||
# LLVM 15.0.6 tarball at /opt/llvm-15.0.6 that the rest of the build
|
||||
# uses. fr_bridge_codegen 1.80.1 emits broken Dart (stray
|
||||
# `typedef bool = NativeFunction<...>`, unprefixed Int/Pointer in
|
||||
# part files) when its internal ffigen runs against the tarball
|
||||
# libclang. Upstream bridge.yml uses apt's libclang and the same
|
||||
# codegen produces clean output. Don't pass --llvm-path either; let
|
||||
# ffigen find libclang via system defaults.
|
||||
unset LIBCLANG_PATH
|
||||
|
||||
# extended_text 14.0.0 requires Dart >=3.5 (Flutter 3.24+). Flutter
|
||||
# 3.22.3 has Dart 3.4.4, so downgrade to 13.0.0 for the duration of
|
||||
# bridge generation. Mirrors upstream bridge.yml.
|
||||
@@ -134,7 +144,6 @@ jobs:
|
||||
# internally, which re-validates pubspec.yaml -- so pubspec.yaml must
|
||||
# still be the downgraded version when this runs.
|
||||
flutter_rust_bridge_codegen \
|
||||
--llvm-path "$LLVM_HOME" \
|
||||
--rust-input ./src/flutter_ffi.rs \
|
||||
--dart-output ./flutter/lib/generated_bridge.dart \
|
||||
--c-output ./flutter/macos/Runner/bridge_generated.h
|
||||
|
||||
@@ -81,6 +81,7 @@ apt-get update -qq
|
||||
apt-get install -y --no-install-recommends \
|
||||
build-essential clang gcc g++ cmake ninja-build pkg-config nasm yasm \
|
||||
autoconf automake libtool libtool-bin \
|
||||
libclang-dev llvm-dev \
|
||||
libgtk-3-dev libayatana-appindicator3-dev \
|
||||
libasound2-dev libpulse-dev libpam0g-dev libssl-dev \
|
||||
libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev \
|
||||
|
||||
Reference in New Issue
Block a user