From 8d48bef49ef9a56335cd44937e18af2f1adf189b Mon Sep 17 00:00:00 2001 From: Geoffrey Bonneville Date: Sat, 30 Nov 2024 00:04:16 +0100 Subject: [PATCH] ci: Add build jobs for android & linux --- .github/workflows/build-apps.yml | 40 ++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/build-apps.yml diff --git a/.github/workflows/build-apps.yml b/.github/workflows/build-apps.yml new file mode 100644 index 0000000..76a5e90 --- /dev/null +++ b/.github/workflows/build-apps.yml @@ -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: build/linux/x64/release/bundle/pikatorrent + 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/*