8000 pre-cache artifacts · Issue #711 · meta-flutter/meta-flutter · GitHub
[go: up one dir, main page]

Skip to content

pre-cache artifacts #711

@jwinarske

Description

@jwinarske

There was a fairly "recent" change around precache logic in Flutter.

Adding this to flutter-sdk_git.bb

    # precache artifacts
    run_command(d, 'flutter precache --web', source_dir, env)
    run_command(d, 'flutter precache --linux', source_dir, env)
    run_command(d, 'flutter precache --universal', source_dir, env)

Output snippet

NOTE: Running [flutter precache --web] in /mnt/raid10/yocto/master/raspberry-pi5/tmp/work/x86_64-linux/flutter-sdk-native/3.35.7/sources/flutter
NOTE: Downloading Material fonts...                                      231ms
Downloading Gradle Wrapper...                                       46ms
Downloading Web SDK...                                             390ms
Downloading package sky_engine...                                   33ms
Downloading package flutter_gpu...                                  17ms
Downloading flutter_patched_sdk tools...                            60ms
Downloading flutter_patched_sdk_product tools...                    59ms
Downloading linux-x64 tools...                                     489ms
Downloading linux-x64/font-subset tools...                          42ms
NOTE: Running [flutter precache --linux] in /mnt/raid10/yocto/master/raspberry-pi5/tmp/work/x86_64-linux/flutter-sdk-native/3.35.7/sources/flutter
NOTE: Downloading linux-x64-debug/linux-x64-flutter-gtk tools...       1,647ms
Downloading linux-x64-profile/linux-x64-flutter-gtk tools...        504ms
Downloading linux-x64-release/linux-x64-flutter-gtk tools...        330ms
NOTE: Running [flutter precache --universal] in /mnt/raid10/yocto/master/raspberry-pi5/tmp/work/x86_64-linux/flutter-sdk-native/3.35.7/sources/flutter
NOTE: Downloading libimobiledevice...                                    172ms
Downloading libusbmuxd...                                           43ms

These should be added as cipd or storage archive reference to recipe, so they are fetched and archived when network is available.

Yocto's idea of pre-cache does not match Flutters.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0