change to building arm variant
All checks were successful
Build CI / Build (push) Successful in 5m46s

This commit is contained in:
2026-02-11 17:32:46 +00:00
parent 73827ea62c
commit f5bff6bd98

View File

@@ -5,6 +5,7 @@ jobs:
build: build:
name: Build name: Build
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
@@ -18,39 +19,34 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-buildx- ${{ runner.os }}-buildx-
- name: Set up QEMU - name: Install Framework Dependencies
uses: docker/setup-qemu-action@v3 run: |
sudo apt-get update -y
- name: Set up Docker Buildx sudo apt install -y ninja-build cmake clang libgtk-3-dev
uses: docker/setup-buildx-action@v3
- uses: docker/build-push-action@v6 - name: Install Flutter
uses: subosito/flutter-action@v2
with: with:
context: . channel: master
push: false flutter-version: 3.38.9
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}}
# - name: Setup QEMU - name: Check Flutter Installation
# run: | run: flutter doctor -v
# sudo apt-get update -y
# sudo apt install -y qemu-user-static
# docker run --privileged --rm tonistiigi/binfmt --install all
# - name: Build app - name: Get Project Dependencies
# run: | run: flutter pub get
# 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: 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 - name: Save Artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: PROD name: PROD.arm64
path: ./prod path: build/linux/*/release/bundle/prod