Skip to content

Commit

Permalink
ci: Add build jobs for android & linux
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Ray committed Nov 29, 2024
1 parent 5e11d5f commit 3c4f8f3
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build-apps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build apps
on: [push]
jobs:
build-linux:
runs-on: ubuntu-24.04
defaults:
run:
working-directory: ./app
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
sudo apt-get install -y ninja-build libgtk-3-dev libcurl4-openssl-dev
- run: flutter build linux
- name: compress bundle
run: tar -cJf pikatorrent-linux.tar.xz ./build/linux/x64/release/bundle/
- uses: actions/upload-artifact@v4
with:
path: /app/pikatorrent-linux.tar.xz
build-android:
runs-on: ubuntu-24.04
defaults:
run:
working-directory: ./app
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- run: flutter build apk
- uses: actions/upload-artifact@v4
with:
path: app/build/app/outputs/apk/release/*

0 comments on commit 3c4f8f3

Please sign in to comment.