Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial CI Build system #4

Merged
merged 5 commits into from
Dec 21, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
👷 (Ci Build) Add manual build windows & linux app
  • Loading branch information
iqfareez committed Dec 21, 2024
commit e5dbad771c158cc95b1e6383a8df15edb2d1016b
35 changes: 35 additions & 0 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build Linux Portable Executable on Demand

on:
workflow_dispatch:

jobs:
build_linux:
name: 🐧 Build Linux App
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable

- run: sudo apt-get update -y
- run: sudo apt-get install -y ninja-build libgtk-3-dev

- name: Build Linux App
run: |
flutter pub get
flutter build linux --release

- name: Compress Linux App
run: |
cd build/linux/x64/release/bundle/
zip -r linux-x64.zip *

- name: Upload Linux App artifact
uses: actions/upload-artifact@v4
with:
name: linux-x64-app
path: build/linux/x64/release/bundle/linux-x64.zip
24 changes: 24 additions & 0 deletions .github/workflows/build-windows-portable.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build Windows Portable Executable on Demand

on:
workflow_dispatch:

jobs:
build_windows:
name: 🪟 Build Windows App
runs-on: windows-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- run: flutter pub get
- run: flutter build windows --release
- run: cd build/windows/x64/runner/Release/ && powershell Compress-Archive -Path * -DestinationPath windows-x64-portable.zip
- name: Upload Windows App to release
uses: softprops/action-gh-release@v1
with:
files: build/windows/x64/runner/Release/windows-x64-portable.zip