Skip to content

LINUX BUILDING IS AWESOEM #4

LINUX BUILDING IS AWESOEM

LINUX BUILDING IS AWESOEM #4

Workflow file for this run

name: Flutter Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.27.2' # Specify the Flutter version you want to use
- name: Install dependencies
run: flutter pub get
- name: Install Dependencies (Linux only)
if: matrix.os == 'ubuntu-latest'
run: sudo apt-get install clang cmake git ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev
- name: Build for ${{ matrix.os }}
run: |
if [ "${{ matrix.os }}" == "ubuntu-latest" ]; then
flutter build linux
elif [ "${{ matrix.os }}" == "macos-latest" ]; then
flutter build macos
elif [ "${{ matrix.os }}" == "windows-latest" ]; then
flutter build windows
fi
- name: Upload build artifacts
uses: actions/[email protected]
with:
name: build-${{ matrix.os }}
path: |
build/linux/x64/release/bundle/**
build/macos/Build/Products/Release/**
build/windows/runner/Release/**