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 30, 2024
1 parent 5e11d5f commit e9a8318
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 4 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/build-apps.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
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
name: linux
with:
name: pikatorrent-linux
path: app/build/linux/x64/release/bundle/**/*
build-android:
runs-on: ubuntu-24.04
defaults:
run:
working-directory: ./app
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Setup vcpkg
uses: lukka/run-vcpkg@v11
with:
vcpkgGitCommitId: b2cb0da531c2f1f740045bfe7c4dac59f0b2b69c
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
- run: flutter build apk
- uses: actions/upload-artifact@v4
with:
name: pikatorrent-android
path: app/build/app/outputs/apk/release/*
4 changes: 2 additions & 2 deletions app/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -234,8 +234,8 @@ packages:
dependency: "direct main"
description:
path: "."
ref: HEAD
resolved-ref: e6e269c9d4ba81c0d0de9c2e830d796c0a326954
ref: dc6c3566b745f7bf4b9b6ed526d42b71e73edb10
resolved-ref: dc6c3566b745f7bf4b9b6ed526d42b71e73edb10
url: "https://github.com/G-Ray/flutter_libtransmission"
source: git
version: "0.0.1"
Expand Down
5 changes: 3 additions & 2 deletions app/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ dependencies:
flutter:
sdk: flutter
flutter_libtransmission:
git: "https://github.com/G-Ray/flutter_libtransmission"

git:
url: "https://github.com/G-Ray/flutter_libtransmission"
ref: dc6c3566b745f7bf4b9b6ed526d42b71e73edb10

# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
Expand Down

0 comments on commit e9a8318

Please sign in to comment.