ci: Add build jobs for android & linux #24
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
name: Build apps | |
on: [push] | |
jobs: | |
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 | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: pikatorrent-linux | |
path: app/build/linux/x64/release/bundle/**/* | |
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: | | |
sudo apt-get update -y | |
sudo apt-get install -y ninja-build | |
- run: flutter build apk | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: pikatorrent-android | |
path: app/build/app/outputs/apk/release/app-release.apk |