Files
Prod/.gitea/workflows/build.yaml
Phani Pavan K 2098183db3
Some checks failed
Build CI / Build (push) Failing after 1m2s
test new emul
2026-02-08 12:44:49 +05:30

36 lines
1.1 KiB
YAML

name: Build CI
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
channel: master
- uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ gitea.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Setup QEMU
run: |
sudo apt-get update -y
sudo apt install -y qemu-user-static
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- 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: Save Artifacts
uses: actions/upload-artifact@v3
with:
name: PROD
path: build/linux/*/release/bundle/prod