From f5bff6bd9809058ceb404dc9859bdaff504a06ca Mon Sep 17 00:00:00 2001 From: Phani Pavan K Date: Wed, 11 Feb 2026 17:32:46 +0000 Subject: [PATCH] change to building arm variant --- .gitea/workflows/build.yaml | 52 +++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 28 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 0da8cc3..1f93d4c 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -5,6 +5,7 @@ jobs: build: name: Build runs-on: ubuntu-latest + steps: - name: Checkout code uses: actions/checkout@v4 @@ -18,39 +19,34 @@ jobs: restore-keys: | ${{ runner.os }}-buildx- - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - - - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 + - name: Install Framework Dependencies + run: | + sudo apt-get update -y + sudo apt install -y ninja-build cmake clang libgtk-3-dev - - uses: docker/build-push-action@v6 + - name: Install Flutter + uses: subosito/flutter-action@v2 with: - context: . - push: false - tags: phanipavank/prodbuilder:latest - platforms: linux/arm64, linux/amd64 - cache-from: type=gha - cache-to: type=gha,mode=max - outputs: type=local,dest=build/linux/*/release/bundle/prod - build-args: | - TARGETARCH=${{matrix.arch}} + channel: master + flutter-version: 3.38.9 - # - name: Setup QEMU - # run: | - # sudo apt-get update -y - # sudo apt install -y qemu-user-static - # docker run --privileged --rm tonistiigi/binfmt --install all + - name: Check Flutter Installation + run: flutter doctor -v - # - name: Build app - # run: | - # docker run --rm --platform linux/amd64 -v ${{ gitea.workspace }}:/app -w /app ghcr.io/cirruslabs/flutter:3.38.9 bash -c "apt update -y && apt install -y ninja-build cmake clang libgtk-3-dev pkg-config && flutter doctor -v && flutter pub get && flutter build linux --release" + - name: Get Project Dependencies + run: flutter pub get + + # - name: Analyze project + # run: flutter analyze + + # - name: Test project + # run: flutter test + + - name: Build arm64 + run: flutter build linux - - name: ls everything - run: ls -R - - name: Save Artifacts uses: actions/upload-artifact@v3 with: - name: PROD - path: ./prod + name: PROD.arm64 + path: build/linux/*/release/bundle/prod