36 lines
1.0 KiB
YAML
36 lines
1.0 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 --privileged --rm tonistiigi/binfmt --install all
|
|
|
|
- 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
|