Skip to content

Correct github actions #9

Correct github actions

Correct github actions #9

Workflow file for this run

name: Build and Release Flutter Desktop Apps
on:
push:
branches:
- main
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
- name: Install dependencies
run: flutter pub get
- run: |
sudo apt-get update -y
sudo apt-get install -y ninja-build libgtk-3-dev
- run: flutter pub get
- run: flutter build linux
- name: Upload Linux build artifacts
uses: actions/upload-artifact@v2
with:
name: linux-release
path: build/linux/release/
build-macos:
runs-on: macos-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
- run: flutter pub get
- run: flutter build macos
- name: Upload macOS build artifacts
uses: actions/upload-artifact@v2
with:
name: macos-release
path: build/macos/Build/Products/Release/
build-windows:
runs-on: windows-latest
steps:
- name: Clone repository
uses: actions/checkout@v4
- name: Set up Flutter
uses: subosito/flutter-action@v2
with:
channel: stable
cache: true
- run: flutter pub get
- run: flutter build windows
- name: Upload Windows build artifacts
uses: actions/upload-artifact@v2
with:
name: windows-release
path: build/windows/runner/Release/