From 5d3cadefef13a4f87b76663b37f772882014f87d Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 15 Feb 2025 13:39:00 +0800 Subject: [PATCH] :hammer: Add linux build pipeline --- .github/workflows/nightly.yml | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index e2b4752..65b665a 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -38,4 +38,26 @@ jobs: uses: actions/upload-artifact@v4 with: name: build-output-windows - path: build/windows/x64/runner/Release \ No newline at end of file + path: build/windows/x64/runner/Release + build-linux: + runs-on: ubuntu-latest + steps: + - name: Clone repository + uses: actions/checkout@v4 + - name: Set up Flutter + uses: subosito/flutter-action@v2 + with: + channel: stable + cache: true + - run: | + sudo apt-get update -y + sudo apt-get install -y ninja-build libgtk-3-dev + sudo apt-get install libmpv-dev mpv + sudo apt-get install libayatana-appindicator3-dev + - run: flutter pub get + - run: flutter build linux + - name: Archive production artifacts + uses: actions/upload-artifact@v4 + with: + name: build-output-windows + path: build/linux/x64/release \ No newline at end of file