-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split main action runner script and optimized android runner
- Loading branch information
Showing
8 changed files
with
212 additions
and
543 deletions.
There are no files selected for viewing
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
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,43 @@ | ||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
name: Linux build and release | ||
jobs: | ||
linux: | ||
name: Linux | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
cache: true | ||
flutter-version: "3.24.5" | ||
channel: "stable" | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
path: "app" | ||
|
||
- name: Install required build tools for linux | ||
run: | | ||
sudo apt-get update -y | ||
sudo apt-get upgrade -y | ||
sudo apt-get install -y curl git unzip xz-utils zip libglu1-mesa | ||
sudo apt-get install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev | ||
- run: | | ||
cd app | ||
flutter config --enable-linux-desktop | ||
flutter pub get | ||
flutter build linux --release | ||
cd build/linux/x64/release | ||
zip -r linux-release.zip bundle | ||
- name: Create linux Release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "app/build/linux/x64/release/linux-release.zip" | ||
token: ${{ secrets.TOKEN }} | ||
allowUpdates: true |
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,47 @@ | ||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
name: MacOS build and release | ||
jobs: | ||
macos: | ||
name: MacOS | ||
runs-on: macos-latest | ||
steps: | ||
- name: Set up Flutter | ||
uses: subosito/flutter-action@v2 | ||
with: | ||
cache: true | ||
flutter-version: "3.22.2" | ||
channel: "stable" | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
path: "app" | ||
|
||
- uses: actions/checkout@v4 | ||
with: | ||
repository: "hmziqrs/keys-n-stuff" | ||
path: "app/.keys-n-stuff" | ||
token: ${{ secrets.TOKEN }} | ||
|
||
- name: Execute Keys n Stuff | ||
run: | | ||
cd app | ||
dart ./scripts/keys-n-stuff.dart | ||
- run: | | ||
cd app | ||
flutter config --enable-macos-desktop | ||
flutter pub global activate flutterfire_cli | ||
flutter pub get | ||
flutter build macos -t lib/main.firebase.dart --release | ||
cd build/macos/Build/Products/Release | ||
ditto -c -k --sequesterRsrc --keepParent flutter_uis.app macos-release.zip | ||
- uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "app/build/macOS/Build/Products/Release/macos-release.zip" | ||
token: ${{ secrets.TOKEN }} | ||
allowUpdates: true |
Oops, something went wrong.