From 463d56e1e475c7fa010297b0a45744fe8a76033d Mon Sep 17 00:00:00 2001 From: Mike Mueller Date: Tue, 5 May 2026 22:27:07 +0200 Subject: [PATCH] ci(linux): fix for ubunutu --- .gitea/workflows/build-linux.yml | 11 ++++++++++- ci/runners/linux/provision.sh | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build-linux.yml b/.gitea/workflows/build-linux.yml index eb26182f6..a0946e61f 100644 --- a/.gitea/workflows/build-linux.yml +++ b/.gitea/workflows/build-linux.yml @@ -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 diff --git a/ci/runners/linux/provision.sh b/ci/runners/linux/provision.sh index 47e565449..4c0b424ee 100755 --- a/ci/runners/linux/provision.sh +++ b/ci/runners/linux/provision.sh @@ -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 \