Skip to content

Build for Linux

Build for Linux #24

Workflow file for this run

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.3_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.3_dev+${{github.run_number}}.zip