Skip to content

Build

Build #2

Workflow file for this run

name: "Build"
on:
workflow_dispatch:
jobs:
build:
name: Build & Release
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set Up Flutter
uses: subosito/flutter-action@v2.14.0
with:
flutter-version: '3.24.3'
- name: Install Flutter Dependencies
run: flutter pub get
- name: Install linux dependencies
run: |
sudo apt-get update -y
sudo apt-get install clang cmake git ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev
- name: Build Linux App
run: flutter build linux --release --target-platform=linux-arm64,linux-x64
- name: Archive Linux App
run: |
tar -czf build/linux_build_arm64.tar.gz build/linux/arm64/release/bundle
tar -czf build/linux_build_x64.tar.gz build/linux/x64/release/bundle
- name: Upload Artifacts
uses: actions/upload-artifact@v3.0.0
with:
name: Releases
path: |
build/linux_build_arm64.tar.gz
build/linux_build_x64.tar.gz
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "build/linux_build_arm64.tar.gz,build/linux_build_x64.tar.gz"
tag: v${{ env.VERSION }}
token: ${{ secrets.TOKEN }}