-
Notifications
You must be signed in to change notification settings - Fork 17
43 lines (43 loc) · 1.14 KB
/
build-apps.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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/
- run: ls -l
- run: pwd
- uses: actions/upload-artifact@v4
name: linux
with:
path: ./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/*