Files
Libretranslate-app/.gitea/workflows/build.yml
T
y1lm0z 027dcdaa27
Build Ceviri Uygulamasi / build-linux (push) Failing after 8s
Build Ceviri Uygulamasi / build-android (push) Failing after 16s
.gitea/workflows/build.yml Güncelle
build yamel test 2
2026-07-14 15:00:13 +00:00

73 lines
2.0 KiB
YAML

name: Build Ceviri Uygulamasi
on:
push:
branches: [main, master]
workflow_dispatch: {}
jobs:
build-android:
runs-on: docker
container:
image: ghcr.io/cirruslabs/flutter:stable
steps:
- name: Kodu al
uses: https://gitea.com/actions/checkout@v4
- name: Bagimliliklari indir
run: flutter pub get
- name: APK derle
run: flutter build apk --release
- name: APK'yi artifact olarak yukle
uses: https://gitea.com/actions/upload-artifact@v4
with:
name: ceviri-android-apk
path: build/app/outputs/flutter-apk/app-release.apk
build-linux:
runs-on: docker
container:
image: ubuntu:24.04
steps:
- name: Kodu al
uses: https://gitea.com/actions/checkout@v4
- name: Sistem bagimliliklarini kur
run: |
apt-get update
apt-get install -y curl git unzip xz-utils clang cmake ninja-build \
pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev
- name: Flutter SDK kur
run: |
git clone https://github.com/flutter/flutter.git -b stable --depth 1 /opt/flutter
echo "/opt/flutter/bin" >> "$GITHUB_PATH"
- name: Linux masaustu destegini ac
run: |
export PATH="/opt/flutter/bin:$PATH"
flutter config --enable-linux-desktop
flutter doctor
- name: Bagimliliklari indir
run: |
export PATH="/opt/flutter/bin:$PATH"
flutter pub get
- name: Linux derle
run: |
export PATH="/opt/flutter/bin:$PATH"
flutter build linux --release
- name: Bundle'i sikistir
run: |
cd build/linux/x64/release
tar -czf ceviri-linux-bundle.tar.gz bundle
- name: Linux bundle'i artifact olarak yukle
uses: https://gitea.com/actions/upload-artifact@v4
with:
name: ceviri-linux-bundle
path: build/linux/x64/release/ceviri-linux-bundle.tar.gz