From a02b921bb86cdd714a9564e09f7c79047ee9245e Mon Sep 17 00:00:00 2001 From: wang-bin Date: Tue, 21 Jan 2025 21:04:24 +0800 Subject: [PATCH] ci: add linux arm64 no arm64 in flutter-action --- .github/workflows/build.yml | 62 +++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 957bbe7..5ee4172 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -146,6 +146,68 @@ jobs: name: fvp-example-linux-${{ matrix.channel }}-${{ matrix.version }} path: example/fvp_example_linux*.tar.xz + + Linux-arm64: + if: false + runs-on: ubuntu-24.04-arm + defaults: + run: + working-directory: example + strategy: + fail-fast: false + matrix: + version: ['any'] + channel: ['stable'] + steps: + - uses: actions/checkout@v4 + with: + submodules: 'recursive' + - uses: subosito/flutter-action@v2 + with: + flutter-version: ${{ matrix.version }} + channel: ${{ matrix.channel }} + cache: true + - run: | + sudo apt-get update -y + sudo apt-get install -y cmake clang ninja-build libgtk-3-dev libpulse-dev +# - run: flutter config --enable-linux-desktop + - run: flutter doctor --verbose + - run: flutter pub get + - run: flutter build linux --verbose + - run: mv build/linux/arm64/release/bundle . + - run: cmake -E tar Jcvf fvp_example_linux-arm64-${{ matrix.channel }}-${{ matrix.version }}.tar.xz bundle + - name: Upload + uses: actions/upload-artifact@v4 + with: + name: fvp-example-linux-arm64-${{ matrix.channel }}-${{ matrix.version }} + path: example/fvp_example_linux*.tar.xz + + + Snap-arm64: + runs-on: ubuntu-24.04-arm + defaults: + run: + working-directory: example + steps: + - uses: actions/checkout@v4 + with: + submodules: 'recursive' + - name: Install dependencies + run: | + sudo apt-get update -y + sudo apt-get install -y cmake clang ninja-build libgtk-3-dev libpulse-dev + sudo snap install flutter --classic + - run: flutter doctor --verbose + - run: flutter pub get + - run: flutter build linux --verbose + - run: mv build/linux/arm64/release/bundle . + - run: cmake -E tar Jcvf fvp_example_linux-arm64-snap.tar.xz bundle + - name: Upload + uses: actions/upload-artifact@v4 + with: + name: fvp-example-linux-arm64-snap + path: example/fvp_example_linux*.tar.xz + Snap: runs-on: ubuntu-latest defaults: