-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/Sivan22/otzaria
- Loading branch information
Showing
2 changed files
with
113 additions
and
42 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
name: 'Build for all platforms' | ||
|
||
on: | ||
workflow_dispatch | ||
|
||
|
||
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 | ||
- 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-0 libblkid1 liblzma5 | ||
- run: flutter build linux | ||
- name: zip the bundle | ||
- run: zip -r otzaria-linux.zip build/linux/release/bundle | ||
- name: Upload linux build | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: otzaria-linux.zip | ||
path: otzaria-linux.zip | ||
|
||
|
||
build_android: | ||
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: flutter pub get | ||
- run: flutter test | ||
- run: flutter build apk | ||
- run: flutter build appbundle | ||
- name: Upload apk | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
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 test | ||
- 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 | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|