Skip to content

Commit

Permalink
finished
Browse files Browse the repository at this point in the history
  • Loading branch information
Sivan22 authored Sep 5, 2024
1 parent 64d5f28 commit a5e4876
Showing 1 changed file with 84 additions and 0 deletions.
84 changes: 84 additions & 0 deletions .github/workflows/flutter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,44 @@ on:


jobs:
build_windows:
runs-on: windows-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
- run: dart run msix:create --install-certificate false
- name: Upload windows build
uses: actions/upload-artifact@v4
with:
name: otzaria.msix
path: build/windows/x64/runner/release/otzaria.msix

build_linux:
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
- run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev libblkid1 liblzma5
- run: flutter build linux
- name: zip the bundle
run: zip -r otzaria-linux.zip build/linux/x64/release/bundle/
- name: Upload linux build
uses: actions/upload-artifact@v4
with:
name: otzaria-linux.zip
path: otzaria-linux.zip


build_android:
Expand All @@ -32,3 +69,50 @@ jobs:
name: otzaria-android.apk
path: build/app/outputs/flutter-apk/app-release.apk

build_macos:
runs-on: macos-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
- run: flutter build macos
- name: Upload macos build
uses: actions/upload-artifact@v4
with:
name: otzaria-macos.app
path: build/macos/Build/Products/Release/otzaria.app



build_ios:
runs-on: macos-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
- run: flutter pub get
- run: flutter build ios --release --no-codesign
- name: Upload iphone build
uses: actions/upload-artifact@v4
with:
name: otzaria-iphone.app
path: build/ios/iphoneos/Runner.app











0 comments on commit a5e4876

Please sign in to comment.