Files
Prod/.gitea/workflows/build.yaml
Phani Pavan K 112d608b7b
Some checks failed
Build CI / AMD64 Build (push) Failing after 2m49s
Update .gitea/workflows/build.yaml
2026-03-01 16:34:09 +00:00

69 lines
1.8 KiB
YAML

name: Build CI
# on: [push]
on:
push:
branches:
- master
paths:
- "lib/**"
- ".gitea/**"
jobs:
AMD64:
name: AMD64 Build
runs-on: linux-amd64
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: Install Framework Dependencies
run: |
sudo apt-get update -y
sudo apt install -y ninja-build cmake clang libgtk-3-dev binutils coreutils desktop-file-utils fakeroot fuse libgdk-pixbuf2.0-dev patchelf python3-pip python3-setuptools squashfs-tools strace util-linux zsync
- name: Install Flutter
uses: subosito/flutter-action@v2
with:
channel: master
flutter-version: 3.38.9
- name: Check Flutter Installation
run: flutter doctor -v
- name: Get Project Dependencies
run: flutter pub get
# - name: Analyze project
# run: flutter analyze
# - name: Test project
# run: flutter test
- name: Build App
run: flutter build linux
- name: Setup AppImageBuilder
run: |
wget -O appimage-builder-x86_64.AppImage https://github.com/AppImageCrafters/appimage-builder/releases/download/v1.1.0/appimage-builder-1.1.0-x86_64.AppImage
chmod +x appimage-builder-x86_64.AppImage
- name: Assemble AppImage
run: |
./appimage-builder-x86_64.AppImage --recipe configs/AppImageBuilder_amd64.yml --skip-test
- name: Save Artifacts
uses: actions/upload-artifact@v3
with:
name: Prod.appimage
path: prod.appimage