-
-
Notifications
You must be signed in to change notification settings - Fork 42
45 lines (35 loc) · 1.25 KB
/
linux_ci.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
44
45
name: "Build for Linux"
on:
workflow_dispatch:
branches: main
jobs:
linux_build:
name: Linux Build
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.24.0'
channel: stable
- run: |
sudo apt-get update -y
sudo apt-get install -y curl git unzip xz-utils zip libglu1-mesa
sudo apt-get install -y ninja-build libgtk-3-dev cmake git libmpv-dev clang
- name: Install Dependencies
run: flutter pub get
- name: Create .env file
run: echo "CLIENT_ID = XXXXX\nCLIENT_SECRET = XXXX EOF" > assets/.env
- name: Build Linux App
run: flutter build linux --release --build-number ${{github.run_number}}
- name: Zip Linux App
run: |
cd build/linux/x64/release/bundle
zip -r bloomee_tunes_linux_v2.10.7_dev+${{github.run_number}}.zip .
- name: Upload Linux App
uses: actions/upload-artifact@v4
with:
name: bloomee_tunes_linux_dev
path: build/linux/x64/release/bundle/bloomee_tunes_linux_v2.10.7_dev+${{github.run_number}}.zip