ci(linux): explicitly regen .freezed.dart with build_runner --delete-conflicting-outputs
This commit is contained in:
@@ -120,6 +120,15 @@ jobs:
|
||||
--c-output ./flutter/macos/Runner/bridge_generated.h
|
||||
cp ./flutter/macos/Runner/bridge_generated.h ./flutter/ios/Runner/bridge_generated.h
|
||||
|
||||
# Explicitly regenerate .freezed.dart files. fr_bridge_codegen 1.80.1
|
||||
# is supposed to invoke build_runner internally, but on Debian 13's
|
||||
# toolchain that auto-step has been observed to leave a stale or
|
||||
# half-generated lib/generated_bridge.freezed.dart behind, which then
|
||||
# fails compilation later in `flutter build linux` with errors like
|
||||
# `Type 'Int' not found` (unprefixed FFI types). --delete-conflicting-outputs
|
||||
# ensures the file is fully rebuilt.
|
||||
(cd flutter && dart run build_runner build --delete-conflicting-outputs)
|
||||
|
||||
- name: vcpkg install dependencies (x64-linux)
|
||||
shell: bash
|
||||
env:
|
||||
|
||||
@@ -79,7 +79,7 @@ export DEBIAN_FRONTEND=noninteractive
|
||||
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 \
|
||||
autoconf automake libtool libtool-bin \
|
||||
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