Test Build LaLa #28
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: Test Build LaLa | |
on: | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: 'Log level' | |
required: true | |
default: 'warning' | |
type: choice | |
options: | |
- info | |
- warning | |
- debug | |
jobs: | |
build_windows: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: kuhnroyal/flutter-fvm-config-action@v2 | |
id: fvm-config-action | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }} | |
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }} | |
- run: flutter --version | |
- run: flutter config --enable-windows-desktop | |
- run: flutter build windows | |
- name: Build Installer | |
run: | | |
"%programfiles(x86)%\Inno Setup 6\iscc.exe" ".\dist\windows_inno_setup.iss" | |
shell: cmd | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: LaLa_Setup | |
path: build\LaLa_Setup.exe | |
build_linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: kuhnroyal/flutter-fvm-config-action@v2 | |
id: fvm-config-action | |
- uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }} | |
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }} | |
- run: | | |
sudo apt-get update -y | |
sudo apt-get install -y ninja-build libgtk-3-dev | |
- run: flutter config --enable-linux-desktop | |
- run: flutter build linux --target-platform=linux-x64 | |
- run: (cd build/linux/x64/release/bundle && zip -r ../../../../LaLa_linux_amd64.zip .) | |
- name: upload LaLa Build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: LaLa_build | |
path: build | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: LaLa_amd64_binary | |
path: build/LaLa_linux_amd64.zip | |
- name: Package Deb App | |
run: bash dist/linux_deb.sh | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: LaLa_amd64_deb | |
path: build/LaLa_amd64.deb | |
- name: Build AppImage using AppImage-Builder | |
uses: docker://appimagecrafters/appimage-builder:latest | |
with: | |
entrypoint: appimage-builder | |
args: --recipe dist/AppImageBuilder.yml --skip-test | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: LaLa_amd64_appImage | |
path: '*.AppImage' | |
build_flatpak: | |
needs: build_linux | |
runs-on: ubuntu-latest | |
container: | |
image: bilelmoussaoui/flatpak-github-actions:freedesktop-23.08 | |
options: --privileged | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: LaLa_build | |
path: build | |
- name: Build Flatpak | |
uses: flatpak/flatpak-github-actions/flatpak-builder@v6 | |
with: | |
bundle: LaLa_linux_amd64.flatpak | |
manifest-path: dist/com.aironheart.lala.yml | |
cache-key: flatpak-builder-${{ github.sha }} | |
upload-artifact: false | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: LaLa_amd64_flatpak | |
path: LaLa_linux_amd64.flatpak |