|
| 1 | +name: Linux armv7hf |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + types: [ opened, synchronize, reopened, closed ] |
| 6 | + release: |
| 7 | + types: [ published, created, edited ] |
| 8 | + workflow_dispatch: |
| 9 | + |
| 10 | +jobs: |
| 11 | + linux-armv7hf: |
| 12 | + |
| 13 | + env: |
| 14 | + # TODO - hard coded for now |
| 15 | + SRCREV: "c9b9d5780da342eb3f0f5e439a7db06f7d112575" |
| 16 | + |
| 17 | + runs-on: [self-hosted, linux, x64] |
| 18 | + |
| 19 | + steps: |
| 20 | + - uses: actions/checkout@v4 |
| 21 | + with: |
| 22 | + persist-credentials: false |
| 23 | + |
| 24 | + - name: Install packages |
| 25 | + run: | |
| 26 | + git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git |
| 27 | +
|
| 28 | + - name: Get Flutter Source |
| 29 | + run: | |
| 30 | + export PATH=$PATH:$PWD/depot_tools |
| 31 | + export VPYTHON_VIRTUALENV_ROOT=$PWD/vpython |
| 32 | + gclient config --spec 'solutions=[{"name":"src/flutter","url":"https://github.com/flutter/engine.git","deps_file":"DEPS","managed":False,"custom_deps":{},"custom_vars":{"download_android_deps":False,"download_windows_deps":False,"download_linux_deps":True}}]' |
| 33 | + gclient sync --force --shallow --no-history -R -D --revision $SRCREV -j$(nproc) -v |
| 34 | +
|
| 35 | + PATCH_DIR=$PWD/patches |
| 36 | +
|
| 37 | + # fetch arm sysroot |
| 38 | + cd src |
| 39 | + build/linux/sysroot_scripts/install-sysroot.py --arch=arm |
| 40 | +
|
| 41 | + git apply $PATCH_DIR/0001-clang-toolchain.patch |
| 42 | + cd flutter |
| 43 | + git apply $PATCH_DIR/0001-export-GPU-symbols.patch |
| 44 | + |
| 45 | + - name: Build Debug |
| 46 | + working-directory: src |
| 47 | + run: | |
| 48 | + export PATH=$PATH:$PWD/../depot_tools |
| 49 | + export VPYTHON_VIRTUALENV_ROOT=$PWD/vpython |
| 50 | + ./flutter/tools/gn --runtime-mode=debug \ |
| 51 | + --embedder-for-target \ |
| 52 | + --no-build-embedder-examples \ |
| 53 | + --enable-impeller-3d \ |
| 54 | + --no-goma --no-rbe \ |
| 55 | + --no-stripped --no-enable-unittests \ |
| 56 | + --linux-cpu arm \ |
| 57 | + --arm-float-abi hard \ |
| 58 | + --target-os linux \ |
| 59 | + --target-sysroot $PWD/build/linux/debian_sid_arm-sysroot \ |
| 60 | + --target-toolchain $PWD/flutter/buildtools/linux-x64/clang \ |
| 61 | + --target-triple armv7-unknown-linux-gnueabihf |
| 62 | +
|
| 63 | + ninja -C out/linux_debug_arm |
| 64 | +
|
| 65 | + - name: Publish Debug |
| 66 | + working-directory: src/out/linux_debug_arm |
| 67 | + run: | |
| 68 | + ls -laR clang_x64/exe.unstripped |
| 69 | + ls -la *.so |
| 70 | +
|
| 71 | + - name: Build Release |
| 72 | + working-directory: src |
| 73 | + run: | |
| 74 | + export PATH=$PATH:$PWD/../depot_tools |
| 75 | + export VPYTHON_VIRTUALENV_ROOT=$PWD/vpython |
| 76 | + ./flutter/tools/gn --runtime-mode=release \ |
| 77 | + --embedder-for-target \ |
| 78 | + --no-build-embedder-examples \ |
| 79 | + --enable-impeller-3d \ |
| 80 | + --no-goma --no-rbe \ |
| 81 | + --no-stripped --no-enable-unittests \ |
| 82 | + --linux-cpu arm \ |
| 83 | + --arm-float-abi hard \ |
| 84 | + --target-os linux \ |
| 85 | + --target-sysroot $PWD/build/linux/debian_sid_arm-sysroot \ |
| 86 | + --target-toolchain $PWD/flutter/buildtools/linux-x64/clang \ |
| 87 | + --target-triple armv7-unknown-linux-gnueabihf |
| 88 | +
|
| 89 | + ninja -C out/linux_release_arm |
| 90 | +
|
| 91 | + - name: Publish Release |
| 92 | + working-directory: src/out/linux_release_arm |
| 93 | + run: | |
| 94 | + ls -laR clang_x64/exe.unstripped |
| 95 | + ls -la *.so |
| 96 | +
|
| 97 | + - name: Build Profile |
| 98 | + working-directory: src |
| 99 | + run: | |
| 100 | + export PATH=$PATH:$PWD/../depot_tools |
| 101 | + export VPYTHON_VIRTUALENV_ROOT=$PWD/vpython |
| 102 | + ./flutter/tools/gn --runtime-mode=profile \ |
| 103 | + --embedder-for-target \ |
| 104 | + --no-build-embedder-examples \ |
| 105 | + --enable-impeller-3d \ |
| 106 | + --no-goma --no-rbe \ |
| 107 | + --no-stripped --no-enable-unittests \ |
| 108 | + --linux-cpu arm \ |
| 109 | + --arm-float-abi hard \ |
| 110 | + --target-os linux \ |
| 111 | + --target-sysroot $PWD/build/linux/debian_sid_arm-sysroot \ |
| 112 | + --target-toolchain $PWD/flutter/buildtools/linux-x64/clang \ |
| 113 | + --target-triple armv7-unknown-linux-gnueabihf |
| 114 | +
|
| 115 | + ninja -C out/linux_profile_arm |
| 116 | +
|
| 117 | + - name: Publish Profile |
| 118 | + working-directory: src/out/linux_profile_arm |
| 119 | + run: | |
| 120 | + ls -laR clang_x64/exe.unstripped |
| 121 | + ls -la *.so |
0 commit comments